first
This commit is contained in:
10
node_modules/core-js/internals/to-offset.js
generated
vendored
Normal file
10
node_modules/core-js/internals/to-offset.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
var toPositiveInteger = require('../internals/to-positive-integer');
|
||||
|
||||
var $RangeError = RangeError;
|
||||
|
||||
module.exports = function (it, BYTES) {
|
||||
var offset = toPositiveInteger(it);
|
||||
if (offset % BYTES) throw $RangeError('Wrong offset');
|
||||
return offset;
|
||||
};
|
Reference in New Issue
Block a user