{{alias}}( indices, max ) Normalizes indices to the interval [0,max]. If an index exceeds index bounds, the function returns `null`. The function mutates the input array, even when provided an index which exceeds index bounds. Parameters ---------- indices: Collection Indices to normalize. max: integer Maximum index value. Returns ------- out: Collection|null Normalized indices. Examples -------- > var idx = {{alias}}( [ 2, -5 ], 10 ) [ 2, 6 ] > idx = {{alias}}( [ 15 ], 10 ) null See Also --------