1 | var _curry1 =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_curry1");
|
4 | /**
|
5 | * Returns a list of all the properties, including prototype properties, of the
|
6 | * supplied object.
|
7 | * Note that the order of the output array is not guaranteed to be consistent
|
8 | * across different JS platforms.
|
9 | *
|
10 | * @func
|
11 | * @memberOf R
|
12 | * @since v0.2.0
|
13 | * @category Object
|
14 | * @sig {k: v} -> [v]
|
15 | * @param {Object} obj The object to extract values from
|
16 | * @return {Array} An array of the values of the object's own and prototype properties.
|
17 | * @see R.values, R.keysIn
|
18 | * @example
|
19 | *
|
20 | * const F = function() { this.x = 'X'; };
|
21 | * F.prototype.y = 'Y';
|
22 | * const f = new F();
|
23 | * R.valuesIn(f); //=> ['X', 'Y']
|
24 | */
|
25 |
|
26 |
|
27 | var valuesIn =
|
28 | /*#__PURE__*/
|
29 | _curry1(function valuesIn(obj) {
|
30 | var prop;
|
31 | var vs = [];
|
32 |
|
33 | for (prop in obj) {
|
34 | vs[vs.length] = obj[prop];
|
35 | }
|
36 |
|
37 | return vs;
|
38 | });
|
39 |
|
40 | module.exports = valuesIn; |
\ | No newline at end of file |