main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 6 months ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
350 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var implementation = require('./implementation');
|
---|
4 |
|
---|
5 | var getProto = require('get-proto');
|
---|
6 |
|
---|
7 | module.exports = function getPolyfill() {
|
---|
8 | if (typeof Reflect === 'object' && Reflect && Reflect.getPrototypeOf) {
|
---|
9 | return Reflect.getPrototypeOf;
|
---|
10 | }
|
---|
11 | return getProto
|
---|
12 | ? function getPrototypeOf(O) { return getProto(O); }
|
---|
13 | : implementation;
|
---|
14 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.