Sha256: 85955230dc7da133e014a985f6b3fe257884bda4266e192cde1d1c617b322220
Contents?: true
Size: 542 Bytes
Versions: 26
Compression:
Stored size: 542 Bytes
Contents
/*! * Chai - getEnumerableProperties utility * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ /** * ### .getEnumerableProperties(object) * * This allows the retrieval of enumerable property names of an object, * inherited or not. * * @param {object} object * @returns {Array} * @namespace Utils * @name getEnumerableProperties * @public */ module.exports = function getEnumerableProperties(object) { var result = []; for (var name in object) { result.push(name); } return result; };
Version data entries
26 entries across 26 versions & 1 rubygems