UNPKG

@stdlib/array

Version:
26 lines (18 loc) 502 B
{{alias}}( x ) Reverses the order of elements along the second-to-last dimension of a four- dimensional nested input array. The function does *not* perform a deep copy of nested array elements. Parameters ---------- x: ArrayLikeObject Input nested array. Returns ------- out: Array Output array. Examples -------- > var out = {{alias}}( [ [ [ [ 1, 2 ], [ 3, 4 ] ] ] ] ) [ [ [ [ 3, 4 ], [ 1, 2 ] ] ] ] See Also --------