Return a new array of given shape and type, filled with ones.
Shape of the new array, e.g., [2, 3] or 2.
Optional
Defaut is "array". The type of the output array. E.g., 'uint8' or Uint8Array.
Array of ones with the given shape and dtype
Return a new array of given shape and type, filled with ones.