-
-
Notifications
You must be signed in to change notification settings - Fork 805
/
Copy pathindex.js
51 lines (38 loc) · 1007 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
'use strict';
var isFloat32Array = require( './../lib' );
var bool = isFloat32Array( new Float32Array( 10 ) );
console.log( bool );
// => true
bool = isFloat32Array( new Int8Array( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( new Uint8Array( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( new Uint8ClampedArray( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( new Int16Array( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( new Uint16Array( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( new Int32Array( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( new Uint32Array( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( new Float64Array( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( new Array( 10 ) );
console.log( bool );
// => false
bool = isFloat32Array( {} );
console.log( bool );
// => false
bool = isFloat32Array( null );
console.log( bool );
// => false