Sha256: 7fe7a639006b7735e5cd179425b5a4a60e2c55451713f2fb87edf800a48798bc

Contents?: true

Size: 527 Bytes

Versions: 100

Compression:

Stored size: 527 Bytes

Contents

/*!
 * Chai - getEnumerableProperties utility
 * Copyright(c) 2012-2013 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}
 * @name getEnumerableProperties
 * @api public
 */

module.exports = function getEnumerableProperties(object) {
  var result = [];
  for (var name in object) {
    result.push(name);
  }
  return result;
};

Version data entries

100 entries across 68 versions & 1 rubygems

Version Path
ende-0.2.0 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.14 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.14 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.13 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.13 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.12 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.12 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.11 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.11 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.10 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.10 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.9 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.9 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.8 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.8 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.7 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.7 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.6 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.6 vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
ende-0.1.5 vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js