npm.io
1.3.0 • Published 6 years ago

can-single-reference

Licence
MIT
Version
1.3.0
Deps
1
Size
18 kB
Vulns
0
Weekly
0
Stars
3

can-single-reference

Build Status

Assign a value to a function that can be collected later

import singleReference from "can-single-reference";

var obj = {};
singleReference.set(obj, 'pet', 'dog');
singleReference.getAndDelete(obj, 'pet') //-> 'dog'

obj //-> {}

Keywords