initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
16
dawidd6/action-download-artifact-v3/node_modules/traverse/examples/json.js
generated
vendored
Executable file
16
dawidd6/action-download-artifact-v3/node_modules/traverse/examples/json.js
generated
vendored
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
var Traverse = require('traverse');
|
||||
|
||||
var id = 54;
|
||||
var callbacks = {};
|
||||
var obj = { moo : function () {}, foo : [2,3,4, function () {}] };
|
||||
|
||||
var scrubbed = Traverse(obj).map(function (x) {
|
||||
if (typeof x === 'function') {
|
||||
callbacks[id] = { id : id, f : x, path : this.path };
|
||||
this.update('[Function]');
|
||||
id++;
|
||||
}
|
||||
});
|
||||
|
||||
console.dir(scrubbed);
|
||||
console.dir(callbacks);
|
||||
Loading…
Add table
Add a link
Reference in a new issue