UNPKG

@newrelic/gatsby-theme-newrelic

Version:

[![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)

13 lines (11 loc) 307 B
export const range = (a, b) => [...Array(b + 1).keys()].slice(a); export const partition = (arr, predicate) => { return arr.reduce( ([truthy, falsey], item) => { return predicate(item) ? [truthy.concat(item), falsey] : [truthy, falsey.concat(item)]; }, [[], []] ); };