mingo
Version:
MongoDB query language for in-memory objects
11 lines (10 loc) • 341 B
TypeScript
import { ExpressionOperator } 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.
*
* @param {AnyObject} obj
* @param {*} expr
* @return {*}
*/
export declare const $indexOfArray: ExpressionOperator;