File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
lib/node_modules/@stdlib/math/special/abs/lib Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,7 @@ var gabs = require( '@stdlib/math/strided/special/abs' );
43
43
* Computes the absolute value.
44
44
*
45
45
* @param {(ndarray|ArrayLikeObject|number) } x - input value
46
- * @param {(ndarray|ArrayLikeObject) } [mask] - array mask
47
- * @throws {TypeError } first argument must be either an ndarray, array-like object, or number
48
- * @throws {TypeError } second argument must be either an ndarray or array-like object
49
- * @throws {Error } second argument must have the same shape as the first argument
46
+ * @throws {TypeError } must provide either an ndarray, array-like object, or number
50
47
* @returns {(ndarray|number) } results
51
48
*
52
49
* @example
@@ -154,7 +151,7 @@ function abs( x ) {
154
151
return y ;
155
152
}
156
153
if ( ! isArrayLikeObject ( x ) ) {
157
- throw new TypeError ( 'invalid argument. First argument must be either a number , array-like object, or ndarray . Value: `' + x + '`.' ) ;
154
+ throw new TypeError ( 'invalid argument. Must provide either an ndarray , array-like object, or number . Value: `' + x + '`.' ) ;
158
155
}
159
156
N = x . length ;
160
157
dt = dtype ( x ) || 'generic' ;
You can’t perform that action at this time.
0 commit comments