UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

13 lines (9 loc) 217 B
import { compare } from './compare.js' export function includes(a, list){ let index = -1 const { length } = list while (++index < length) if (compare(list[ index ], a)) return true return false }