You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
338 B
19 lines
338 B
4 years ago
|
var root = typeof window !== 'undefined' ?
|
||
|
window : typeof global !== 'undefined' ?
|
||
|
global : {};
|
||
|
|
||
|
module.exports = Individual
|
||
|
|
||
|
function Individual(key, value) {
|
||
|
if (root[key]) {
|
||
|
return root[key]
|
||
|
}
|
||
|
|
||
|
Object.defineProperty(root, key, {
|
||
|
value: value
|
||
|
, configurable: true
|
||
|
})
|
||
|
|
||
|
return value
|
||
|
}
|