UNPKG

@augment-vir/common

Version:

A collection of augments, helpers types, functions, and classes for any JavaScript environment.

11 lines (10 loc) 413 B
/** * Performs * [`''.match`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/match) * but falls back to an empty array if no match was found. * * @category RegExp * @category Package : @augment-vir/common * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common) */ export declare function safeMatch(input: string, regExp: RegExp): string[];