UNPKG

reakit

Version:

Toolkit for building accessible rich web apps with React

19 lines (17 loc) 282 B
import { unstable_setAllIn } from "../setAllIn"; test("setAllIn", () => { const obj = { a: { b: ["c", "d"], e: "f", g: 1, }, }; expect(unstable_setAllIn(obj, "a")).toEqual({ a: { b: ["a", "a"], e: "a", g: "a", }, }); });