Skip to content
Darin Haener edited this page Sep 26, 2015 · 4 revisions

##map This has been removed from version 0.0.5 because of errors with React

loops through an object and returns an array

var object = {name: 'zach', full: 'jed'}
var result = object.map(value => {
  return value + ' is cool'
})
// -> ['zach is cool', 'jed is cool']

##blank

check if an object is empty

var obj = {};
obj.blank -> true

Clone this wiki locally