0.1.0 • Published 8 years ago
t-fp-from-pairs v0.1.0
t-fp-from-pairs
Usage
Simple fromPairs()
function wrote in Typescript.
import fromPairs from 't-fp-from-pairs';
let input: [string, boolean|string][] = [['a', false], ['b', 'bob']];
let result = fromPairs(input);
The type for result is {[k: string]: string | boolean}
.
Installation
Use npm install t-fp-from-pairs
to install.
0.1.0
8 years ago