@unction/fromarraytoobject
v10.13.0
Published
![Tests][BADGE_TRAVIS] ![Stability][BADGE_STABILITY] ![Dependencies][BADGE_DEPENDENCY]
Downloads
91
Readme
@unction/fromArrayToObject
Array<[string | number, A]> => ObjectType
Takes an array that looks like a primitive Object and turns it into a proper object. Duplicate keys get overwritten.
fromArrayToObject([["aaa", "1"], ["bbb", "2"]]) // {aaa: 1, bbb: 2}