@cookbook/dot-notation
Version:
Object readings and complex transformations using dot notation syntax.
17 lines (14 loc) • 332 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/**
* Ensure that given value is array, if not, convert it.
* @param value
*/
var toArray = function toArray(value) {
return Array.isArray(value) ? value : [value];
};
var _default = toArray;
exports.default = _default;