mingo
Version:
MongoDB query language for in-memory objects
7 lines (6 loc) • 307 B
TypeScript
import { Any, AnyObject, Options } 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.
*/
export declare const $split: (obj: AnyObject, expr: Any, options: Options) => Any;