Comparing version 1.8.0 to 1.9.0
@@ -0,1 +1,8 @@ | ||
v1.9.0 | ||
====== | ||
2016-09-28T09:16:08Z | ||
- Implement array's insert methods. | ||
v1.8.0 | ||
@@ -2,0 +9,0 @@ ====== |
{ | ||
"name": "fus-ext", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"description": "FutureScript Extension", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -32,3 +32,3 @@ "use strict";Object.defineProperty(exports, "__esModule", { | ||
return calc(a, b, c) && calc(c, d, e); | ||
};var _elementOrUseSelector, _ratioToIndex, _ratioToLength, _reverseToIndex, _positionToIndex, _amountToLength, clone, isEmpty, bound, portion, at, atOrNull, atOrVoid, includes, contains, first, firstOrNull, firstOrVoid, last, lastOrNull, lastOrVoid, single, singleOrNull, singleOrVoid, withMax, withMin, max, min, sum, average, median, product, group, _sort, sort, sortDescending, reverse, except, distinct, union, intersect, flatten, forEach, toObject, join, randomOne, random, takeRandomOne, takeRandom, removeAt, remove, removeAll, removeMatch, removeAllMatch;_elementOrUseSelector = function (element, selector) { | ||
};var _elementOrUseSelector, _ratioToIndex, _ratioToLength, _reverseToIndex, _positionToIndex, _amountToLength, clone, isEmpty, bound, portion, at, atOrNull, atOrVoid, includes, contains, first, firstOrNull, firstOrVoid, last, lastOrNull, lastOrVoid, single, singleOrNull, singleOrVoid, withMax, withMin, max, min, sum, average, median, product, group, _sort, sort, sortDescending, reverse, except, distinct, union, intersect, flatten, forEach, toObject, join, randomOne, random, takeRandomOne, takeRandom, removeAt, remove, removeAll, removeMatch, removeAllMatch, insertBefore, insertBeforeIndex, insertAfter;_elementOrUseSelector = function (element, selector) { | ||
return (function () { | ||
@@ -601,2 +601,26 @@ return ok_573300145710716007(selector) ? (function () { | ||
})(); | ||
};exports.insertBefore = insertBefore = function (arr, element) { | ||
for (var _len2 = arguments.length, elements = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { | ||
elements[_key2 - 2] = arguments[_key2]; | ||
} | ||
return (function () { | ||
var index;index = arr.indexOf(element);(0, _main.assert)(index > -1);return dotDotCalc_573300145710716007(_main.dotDot_573300145710716007, arr, "insertBeforeIndex", [index].concat(elements)); | ||
})(); | ||
};exports.insertBeforeIndex = insertBeforeIndex = function (arr, index) { | ||
for (var _len3 = arguments.length, elements = Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) { | ||
elements[_key3 - 2] = arguments[_key3]; | ||
} | ||
return (function () { | ||
arr.splice.apply(arr, [index, 0].concat(elements));return arr; | ||
})(); | ||
};exports.insertAfter = insertAfter = function (arr, element) { | ||
for (var _len4 = arguments.length, elements = Array(_len4 > 2 ? _len4 - 2 : 0), _key4 = 2; _key4 < _len4; _key4++) { | ||
elements[_key4 - 2] = arguments[_key4]; | ||
} | ||
return (function () { | ||
var index;index = arr.indexOf(element);(0, _main.assert)(index > -1);return dotDotCalc_573300145710716007(_main.dotDot_573300145710716007, arr, "insertBeforeIndex", [index + 1].concat(elements)); | ||
})(); | ||
};exports._ratioToIndex = _ratioToIndex; | ||
@@ -654,2 +678,5 @@ exports._ratioToLength = _ratioToLength; | ||
exports.removeMatch = removeMatch; | ||
exports.removeAllMatch = removeAllMatch; | ||
exports.removeAllMatch = removeAllMatch; | ||
exports.insertBefore = insertBefore; | ||
exports.insertBeforeIndex = insertBeforeIndex; | ||
exports.insertAfter = insertAfter; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
334959
4176