UNPKG

json-logic-engine

Version:

Construct complex rules with JSON & process them.

9 lines (7 loc) 175 B
/** * Coerces a value into an array. * This is used for unary value operations. */ export function coerceArray (value) { return Array.isArray(value) ? value : [value] }