copy
const store = new NgStore({foo: 2, bar: 1});
// { foo: 2, bar: 1 }
const stateCopy = store.copy();const store = new NgStore({foo: {bar: 3, baz: 4}});
// { bar: 3, baz: 4 }
const fooCopy = store.copy('foo');Last updated
Was this helpful?
const store = new NgStore({foo: 2, bar: 1});
// { foo: 2, bar: 1 }
const stateCopy = store.copy();const store = new NgStore({foo: {bar: 3, baz: 4}});
// { bar: 3, baz: 4 }
const fooCopy = store.copy('foo');Last updated
Was this helpful?
Was this helpful?