import { illegalArgs } from "@thi.ng/errors/illegal-arguments" ; param x export const ensureIterable = ( x ) : Iterable < any > => { ( x == null || ! x [ Symbol . iterator ] ) && illegalArgs ( `value is not iterable: ${ x }` ) ; return x ; } ;