Mapping is about transforming data from one value to another.
array of number to array of words
const converter = require('number-to-words')
// converter.toWords(10) // ten
const numbers = [1,2,3,4,5,6,7,8,9,10,20,30,99, -2]
const numbers = [1,2,3,4,5,6,7,8,9,10,20,30,99, -2]
an unordered list
const h = require('hyperscript')
const buzzwords = require('buzzwords')
const li = (w) => h('li', w)
console.log(h('ul', __ ))
const convert = require('color-convert')
const cssColorList = require('css-color-list')
// ex: convert.keyword.rgb('red')
db search into a list of movie posters.
const h = require('hyperscript')
const request = require('request')
const search = (query, callback) => {
request({
method: 'GET',
json: true,
url: 'http://www.omdbapi.com/?r=json&s=' + query
}, (e,r,b) => callback(e,b))
}
const img = (url) => h('img', {src: url})
search('batman', (e,b) => {
// map over results and show movie posters
})