|
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:
521 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var isPrototypeOf = require('../../internals/object-is-prototype-of');
|
|---|
| 3 | var numberMethod = require('../number/virtual/clamp');
|
|---|
| 4 |
|
|---|
| 5 | var NumberPrototype = String.prototype;
|
|---|
| 6 |
|
|---|
| 7 | module.exports = function (it) {
|
|---|
| 8 | var ownProperty = it.clamp;
|
|---|
| 9 | // eslint-disable-next-line es/no-nonstandard-string-prototype-properties -- safe
|
|---|
| 10 | if (typeof it == 'number' || it === NumberPrototype || (isPrototypeOf(NumberPrototype, it) && ownProperty === NumberPrototype.clamp)) {
|
|---|
| 11 | return numberMethod;
|
|---|
| 12 | }
|
|---|
| 13 | return ownProperty;
|
|---|
| 14 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.