source:
trip-planner-front/node_modules/core-js/internals/to-offset.js@
e29cc2e
Last change on this file since e29cc2e was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 224 bytes |
Line | |
---|---|
1 | var toPositiveInteger = require('../internals/to-positive-integer'); |
2 | |
3 | module.exports = function (it, BYTES) { |
4 | var offset = toPositiveInteger(it); |
5 | if (offset % BYTES) throw RangeError('Wrong offset'); |
6 | return offset; |
7 | }; |
Note:
See TracBrowser
for help on using the repository browser.