import { isArray } from "@thi.ng/checks/is-array" ; import { isArrayLike } from "@thi.ng/checks/is-arraylike" ; import { ensureIterable } from "./ensure-iterable.js" ; remarks param x export const ensureArray = ( x ) : any [ ] => isArray ( x ) ? x : [ ... ensureIterable ( x ) ] ; /**
 * Similar to  ensureArray , but for `ArrayLike` types.
 *
 *  ensureArray param x export const ensureArrayLike = ( x ) : ArrayLike < any > => isArrayLike ( x ) ? x : [ ... ensureIterable ( x ) ] ;