Node.js lodash functions() return an array of an object's function property names

Description

Node.js lodash functions() return an array of an object's function property names


var _ = require('lodash');

// _.functions return an array of an object's function property names

var object = {// w  w  w  . j  ava2s.  c  o m

  f1: function() {  return 'fn1'; },
  f2: function() { return 'f2'; }
}

console.log(_.functions(object));



PreviousNext

Related