1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 1 5 5 1 1 3 1 75 41 1 40 34 | /* vim: set et sw=2 ts=2: */ 'use strict'; module.exports = function () { var Nodash = this; return { keys: Object.keys, values: function (object) { var values = []; Nodash.each(function (value) { values.push(value); }, object); return values; }, clone: function (thing) { if (typeof thing === 'object') { if (thing === null) { return null; } return Nodash.map(Nodash.clone, thing); } return thing; } }; }; |