function zerosLike( x ) {
	var dt = dtype( x ); // delegate input argument validation to dtype resolution
	if ( dt === null ) {
		throw new TypeError( format( 'invalid argument. First argument must be either an array, typed array, or complex typed array. Value: `%s`.', x ) );
	}
	if ( arguments.length > 1 ) {
		dt = arguments[ 1 ];
	}
	return zeros( x.length, dt );
}
Creates a zero-filled array having the same length and data type as a provided input array.

@param {(Array|TypedArray|ComplexArray)} x - input array
@param {string} [dtype] - data type
@throws {TypeError} first argument must be an array or typed array
@throws {TypeError} second argument must be a recognized data type
@returns {(TypedArray|Array|ComplexArray)} array or typed array

@example
var arr = zerosLike( [ 0.0, 0.0 ] );
// returns [ 0.0, 0.0 ]

@example
var arr = zerosLike( [ 0.0, 0.0 ], 'float32' );
// returns <Float32Array>[ 0.0, 0.0 ]