Skip to content

Instantly share code, notes, and snippets.

View heryvandoro's full-sized avatar
🏠
I may be slow to respond.

Hery Vandoro heryvandoro

🏠
I may be slow to respond.
View GitHub Profile
let products = [
{ name: "Apple", type: "fruit" },
{ name: "Monitor", type: "computer" },
{ name: "Mango", type: "fruit" },
{ name: "Table", type: "furniture" }
];
console.log(
products.every(product => product.type === "fruit") //false
);
@heryvandoro
heryvandoro / currency_lis.php
Created September 13, 2019 05:49 — forked from techguydev/currency_lis.php
Currency list for Laravel seeder
<?php
$currencies = array('code' =>
array('code' =>'AFN' , 'name' => 'Afghani', 'symbol' => '؋' ),
array('code' =>'ALL' , 'name' => 'Lek', 'symbol' => 'Lek' ),
array('code' =>'ANG' , 'name' => 'Netherlands Antillian Guilder', 'symbol' => 'ƒ' ),
array('code' =>'ARS' , 'name' => 'Argentine Peso', 'symbol' => '$' ),
array('code' =>'AUD' , 'name' => 'Australian Dollar', 'symbol' => '$' ),
array('code' =>'AWG' , 'name' => 'Aruban Guilder', 'symbol' => 'ƒ' ),
array('code' =>'AZN' , 'name' => 'Azerbaijanian Manat', 'symbol' => 'ман' ),
array('code' =>'BAM' , 'name' => 'Convertible Marks', 'symbol' => 'KM' ),