Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
454 B
22 lines
454 B
1 year ago
|
'use strict';
|
||
|
|
||
|
var callBound = require('call-bind/callBound');
|
||
|
|
||
|
var $byteLength = callBound('SharedArrayBuffer.prototype.byteLength', true);
|
||
|
|
||
|
module.exports = $byteLength
|
||
|
? function isSharedArrayBuffer(obj) {
|
||
|
if (!obj || typeof obj !== 'object') {
|
||
|
return false;
|
||
|
}
|
||
|
try {
|
||
|
$byteLength(obj);
|
||
|
return true;
|
||
|
} catch (e) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
: function isSharedArrayBuffer(obj) { // eslint-disable-line no-unused-vars
|
||
|
return false;
|
||
|
};
|