@unction/objectfrom
TypeScript icon, indicating that this package has built-in type declarations

1.13.0 • Public • Published

@unction/objectFrom

Tests Stability Dependencies

KeyChainType => B => ObjectType

Given a keychain and a value it creates an object that has keys based on the keychain.

objectFrom(["key", "subkey"])("value")

Which returns:

{
  key: {
    subkey: "value"
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @unction/objectfrom

Weekly Downloads

1

Version

1.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

17 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene