swc/bundler/tests/.cache/deno/aa243672612ff73045bf20156419b1c7b0a1b7a8.ts

37 lines
927 B
TypeScript
Raw Normal View History

// Loaded from https://deno.land/x/ramda@v0.27.2/source/valuesIn.js
import _curry1 from './internal/_curry1.js';
/**
* Returns a list of all the properties, including prototype properties, of the
* supplied object.
* Note that the order of the output array is not guaranteed to be consistent
* across different JS platforms.
*
* @func
* @memberOf R
* @since v0.2.0
* @category Object
* @sig {k: v} -> [v]
* @param {Object} obj The object to extract values from
* @return {Array} An array of the values of the object's own and prototype properties.
* @see R.values, R.keysIn
* @example
*
* const F = function() { this.x = 'X'; };
* F.prototype.y = 'Y';
* const f = new F();
* R.valuesIn(f); //=> ['X', 'Y']
*/
var valuesIn = _curry1(function valuesIn(obj) {
var prop;
var vs = [];
for (prop in obj) {
vs[vs.length] = obj[prop];
}
return vs;
});
export default valuesIn;