Sets an ndarray element.
Converts an ndarray-like to an object likely to have the same "shape".
input ndarray
object containing ndarray data
var array = require( `@stdlib/ndarray/array` );
var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ] );
var obj = ndarraylike2object( x );
// returns {...}
Returns an ndarray element.
ndarray data buffer
element index
element value