Sha256: c7164a3ef0f4f4997f65b7d77c211f116b6a3ad1005f4f49c45a57c73c0e06c0
Contents?: true
Size: 736 Bytes
Versions: 26
Compression:
Stored size: 736 Bytes
Contents
/*! * Chai - getOwnEnumerableProperties utility * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ import {getOwnEnumerablePropertySymbols} from './getOwnEnumerablePropertySymbols.js'; /** * ### .getOwnEnumerableProperties(object) * * This allows the retrieval of directly-owned enumerable property names and * symbols of an object. This function is necessary because Object.keys only * returns enumerable property names, not enumerable property symbols. * * @param {object} obj * @returns {Array} * @namespace Utils * @name getOwnEnumerableProperties * @public */ export function getOwnEnumerableProperties(obj) { return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj)); }
Version data entries
26 entries across 26 versions & 1 rubygems