source: imaps-frontend/node_modules/core-js/internals/to-offset.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 274 bytes
Line 
1'use strict';
2var toPositiveInteger = require('../internals/to-positive-integer');
3
4var $RangeError = RangeError;
5
6module.exports = function (it, BYTES) {
7 var offset = toPositiveInteger(it);
8 if (offset % BYTES) throw new $RangeError('Wrong offset');
9 return offset;
10};
Note: See TracBrowser for help on using the repository browser.