UNPKG

mingo

Version:

MongoDB query language for in-memory objects

11 lines (10 loc) 373 B
import { ExpressionOperator } from "../../../types"; /** * Splits a string into substrings based on a delimiter. * If the delimiter is not found within the string, returns an array containing the original string. * * @param {AnyObject} obj * @param {Array} expr * @return {Array} Returns an array of substrings. */ export declare const $split: ExpressionOperator;