source:
trip-planner-front/node_modules/core-js/internals/to-offset.js@
ceaed42
Last change on this file since ceaed42 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 224 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 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.