]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/function/#/partial.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / function / # / partial.js
1 'use strict';
2
3 var callable     = require('../../object/valid-callable')
4   , aFrom        = require('../../array/from')
5   , defineLength = require('../_define-length')
6
7   , apply = Function.prototype.apply;
8
9 module.exports = function (/*…args*/) {
10         var fn = callable(this)
11           , args = aFrom(arguments);
12
13         return defineLength(function () {
14                 return apply.call(fn, this, args.concat(aFrom(arguments)));
15         }, fn.length - args.length);
16 };