mingo
Version:
MongoDB query language for in-memory objects
7 lines (6 loc) • 320 B
TypeScript
import { Any, AnyObject, Options } from "../../../types";
/**
* Searches an array for an occurrence of a specified value and returns the array index of the first occurrence.
* If the substring is not found, returns -1.
*/
export declare const $indexOfArray: (obj: AnyObject, expr: Any[], options: Options) => number;