2.1.0 • Published 5 months ago

setvalue v2.1.0

Weekly downloads
1,226
License
Apache-2.0
Repository
github
Last release
5 months ago

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