Skip to content

alvaropinot/cooking-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cooking emoji

No dependencies emoji cooking 🍻.

Once I've read this tweet from @steveluscher I could not help my self not to write this repo 😈 obviously with his own tests 😂

It's something like:

map([🌽, 🐮, 🐔], cook)
// => [🍿, 🍔, 🍳]

filter([🍿, 🍔, 🍳], isVegetarian)
// =>  [🍿, 🍳]

reduce([🍿, 🍳], eat)
// => 💩

Usage

git clone https://github.com/alvaropinot/cooking-emoji
npm install
npm test

Create your own recipes!

like some ice creams!

const recipes = {
  '🍓': '🍧',
  '🍋': '🍨'
};

const cook = recipeBook(recipes);
['🍓', '🍋'].map(cook);
// => ['🍧', '🍨']

Implementation

implementation details are inside the lib 🗂.

About

cooking emoji the functional way

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published