node: working on start
This commit is contained in:
13
js/immutable.js
Normal file
13
js/immutable.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const _ = require("lodash");
|
||||
|
||||
let lib;
|
||||
|
||||
function set(dp, path, value) {
|
||||
return _.assign({}, dp, _.set({}, path, value));
|
||||
}
|
||||
|
||||
lib = {
|
||||
set
|
||||
};
|
||||
|
||||
module.exports = lib;
|
||||
Reference in New Issue
Block a user