setvalue
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

/setvalue/

    Package Sidebar

    Install

    npm i setvalue

    Weekly Downloads

    1,392

    Version

    2.1.0

    License

    Apache-2.0

    Unpacked Size

    8.92 kB

    Total Files

    6

    Last publish

    Collaborators

    • blakeembrey