6 lines
131 B
JavaScript
6 lines
131 B
JavaScript
|
var prop = function (node, name, value) {
|
||
|
if (typeof value === 'undefined') {
|
||
|
return node[name];
|
||
|
}
|
||
|
node[name] = value;
|
||
|
};
|