This package has been deprecated

Author message:

Use @unction/objectfrom instead

@unction/nestedobjof

1.1.2 • Public • Published

@unction/nestedObjOf

Version Tests Stability Dependencies

(KeyType | Array<KeyType) -> any -> IterableType

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

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

Which returns:

{
  key: {
    subkey: "value"
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @unction/nestedobjof

Weekly Downloads

0

Version

1.1.2

License

ISC

Last publish

Collaborators

  • krainboltgreene