UNPKG

linvail

Version:

Provenancial Equality for JavaScript

16 lines (14 loc) 273 B
const { Reflect: { apply }, String: { prototype: { split: splitString }, }, } = globalThis; /** * @type {( * target: string, * separator: string, * ) => string[]} */ export const split = (target, separator) => apply(splitString, target, [separator]);