10000 feat: add `assert/is-float16array` by udaykakade25 · Pull Request #7273 · stdlib-js/stdlib · GitHub
[go: up one dir, main page]

Skip to content

feat: add assert/is-float16array #7273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 8, 2025
Prev Previous commit
Next Next commit
Fixed lint erros in main.js
Signed-off-by: Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
  • Loading branch information
udaykakade25 authored Jun 13, 2025
commit ccd688e54c2f0a84bc45e1b0ed6a0eb99cbce125
6 changes: 4 additions & 2 deletions lib/node_modules/@stdlib/assert/is-float16array/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@

'use strict';


// MODULES //

Check failure on line 22 in lib/node_modules/@stdlib/assert/is-float16array/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Header comments must be preceded by only one empty line if they follow the `use strict` directive

var nativeClass = require( '@stdlib/utils/native-class' );


// VARIABLES //

var hasFloat16Array = ( typeof Float16Array === 'function' ); // eslint-disable-line stdlib/require-globals
var hasFloat16Array = ( typeof Float16Array === 'function' );


// MAIN //
Expand All @@ -48,11 +49,12 @@
*/
function isFloat16Array( value ) {
return (
( hasFloat16Array && value instanceof Float16Array ) || // eslint-disable-line stdlib/require-globals, no-undef
( hasFloat16Array && value instanceof Float16Array ) ||
nativeClass( value ) === '[object Float16Array]'
);
}


// EXPORTS //

module.exports = isFloat16Array;
Loading
0