main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
572 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var callBind = require('call-bind');
|
---|
4 | var define = require('define-properties');
|
---|
5 | var RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');
|
---|
6 |
|
---|
7 | var implementation = require('./implementation');
|
---|
8 | var getPolyfill = require('./polyfill');
|
---|
9 | var shim = require('./shim');
|
---|
10 |
|
---|
11 | var bound = callBind(getPolyfill());
|
---|
12 | var boundMethod = function trim(receiver) {
|
---|
13 | RequireObjectCoercible(receiver);
|
---|
14 | return bound(receiver);
|
---|
15 | };
|
---|
16 |
|
---|
17 | define(boundMethod, {
|
---|
18 | getPolyfill: getPolyfill,
|
---|
19 | implementation: implementation,
|
---|
20 | shim: shim
|
---|
21 | });
|
---|
22 |
|
---|
23 | module.exports = boundMethod;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.