UNPKG

@cookbook/dot-notation

Version:

Object readings and complex transformations using dot notation syntax.

17 lines (14 loc) 332 B
"use strict"; 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;