0.1.0 • Published 8 years ago

t-fp-from-pairs v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.