File tree 2 files changed +8
-15
lines changed 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -48,20 +48,12 @@ var isObjectLike = require( '@stdlib/assert-is-object-like' );
48
48
* // returns false
49
49
*/
50
50
function isBuffer ( value ) {
51
- return (
52
- isObjectLike ( value ) &&
53
- (
54
- // eslint-disable-next-line no-underscore-dangle
55
- value . _isBuffer || // for envs missing Object.prototype.constructor (e.g., Safari 5-7)
56
- (
57
- value . constructor &&
51
+ return ( isObjectLike ( value ) && // eslint-disable-next-line no-underscore-dangle
52
+ ( // for envs missing Object.prototype.constructor (e.g., Safari 5-7)
53
+ value . _isBuffer || ( value . constructor &&
58
54
59
- // WARNING: `typeof` is not a foolproof check, as certain envs consider RegExp and NodeList instances to be functions
60
- typeof value . constructor . isBuffer === 'function' &&
61
- value . constructor . isBuffer ( value )
62
- )
63
- )
64
- ) ;
55
+ // WARNING: `typeof` is not a foolproof check, as certain envs consider RegExp and NodeList instances to be functions
56
+ typeof value . constructor . isBuffer === 'function' && value . constructor . isBuffer ( value ) ) ) ) ;
65
57
}
66
58
67
59
Original file line number Diff line number Diff line change 37
37
"url" : " https://github.com/stdlib-js/stdlib/issues"
38
38
},
39
39
"dependencies" : {
40
- "@stdlib/assert-is-object-like" : " ^0.2.2"
40
+ "@stdlib/assert-is-object-like" : " ^0.2.2" ,
41
+ "@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
41
42
},
42
43
"devDependencies" : {
43
44
"@stdlib/array-int8" : " ^0.2.2" ,
84
85
"type" : " opencollective" ,
85
86
"url" : " https://opencollective.com/stdlib"
86
87
}
87
- }
88
+ }
You can’t perform that action at this time.
0 commit comments