declarative-js
Version:
_declarative-js_ is modern JavaScript library, that helps to: - tackle array transformation with built in JavaScript array api (e.g. `array.filter(toBe.unique())`), - provide a type-level solution for representing optional values instead of null referen
14 lines (13 loc) • 442 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var Mapper;
(function (Mapper) {
/**
* returns object values
* @param obj object
* @see https://pavel-surinin.github.io/declarativejs/#/?id=toobjvalues
*/
Mapper.toObjValues = function (obj) {
return Object.keys(obj).map(function (k) { return obj[k]; });
};
})(Mapper = exports.Mapper || (exports.Mapper = {}));