|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
274 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var toPositiveInteger = require('../internals/to-positive-integer');
|
|---|
| 3 |
|
|---|
| 4 | var $RangeError = RangeError;
|
|---|
| 5 |
|
|---|
| 6 | module.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.