Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 347 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 347 Bytes

mungr

get mungr

const mungr = require('mungr')

make a mungr

productMungr = mungr({
  name: String,
  price: Number
})

use it

const products = [{name: 'dog', price: '22'}, {name: 'lollipop', price: '5'}]
return products.map(productMungr) // [{name: 'dog', price: 22}, {name: 'lollipop', price: 5}]

whatever