UNPKG

react-universally

Version:

A starter kit for universal react applications.

11 lines (10 loc) 234 B
/** * Filters out all null/undefined items from the given array. * * @param {Array} as - the target array * * @return {Array} The filtered array. */ export default function removeNil(as) { return as.filter(a => a != null); }