import { parseJSONString } from "./object.utils";
import { isString } from "./helpers.types";
export const createArrayRange = (from, to) => {
    if (Number.isInteger(from) && Number.isInteger(to)) {
        return [...Array(to + 1).keys()].slice(from);
    }
    return [];
};
export const propsValueToArray = (value) => {
    if (Array.isArray(value)) {
        return value;
    }
    else if (isString(value)) {
        const parsed = parseJSONString(value);
        if (Array.isArray(parsed)) {
            return parsed;
        }
    }
    return [];
};
//# sourceMappingURL=array.utils.js.map
