JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5167
  • Score
    100M100P100Q123061F
  • License Apache-2.0

Type-safe library for reading, writing, or checking, nested values of an object

Package Exports

  • setvalue

Readme

Setvalue

Type-safe library for reading, writing, or checking, nested values of an object.

Installation

npm install setvalue --save

Usage

import { set, get, has } from "setvalue";

const obj = { a: "prop" };

set("a", "b", "c")(obj, 10); //=> { a: { b: { c: 10 } } }
get("a", "b", "c")(obj); //=> 10
has("a", "b", "c")(obj); //=> true

License

Apache 2.0