UNPKG

@wulperstudio/cms

Version:
9 lines 292 B
export function matchIsArray(value, filled) { var isArray = Array.isArray(value); return filled ? isArray && value.length > 0 : isArray; } export function getFirstIntersection(arrayA, arrayB) { return arrayA.find(function (element) { return arrayB.includes(element); }) || null; }