Skip to content

Instantly share code, notes, and snippets.

View choonkending's full-sized avatar

Ken Ding choonkending

View GitHub Profile
@choonkending
choonkending / createMapFromPairs.js
Last active December 30, 2015 23:31
Mapping an array to an object
/*
* Given an array of pairs
* such as this
* `['a-b','b-c']`
*
* and we wish to convert to
* `{
* a: b,
* b: c
* }`
@choonkending
choonkending / Idea-Mapping-.markdown
Created October 17, 2013 15:59
A Pen by Choon Ken Ding.