mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
27
node_modules/es5-ext/array/#/exclusion.js
generated
vendored
Normal file
27
node_modules/es5-ext/array/#/exclusion.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
var value = require('../../object/valid-value')
|
||||
, aFrom = require('../from')
|
||||
, toArray = require('../to-array')
|
||||
, contains = require('./contains')
|
||||
, byLength = require('./_compare-by-length')
|
||||
|
||||
, filter = Array.prototype.filter, push = Array.prototype.push;
|
||||
|
||||
module.exports = function (/*…lists*/) {
|
||||
var lists, seen, result;
|
||||
if (!arguments.length) return aFrom(this);
|
||||
push.apply(lists = [this], arguments);
|
||||
lists.forEach(value);
|
||||
seen = [];
|
||||
result = [];
|
||||
lists.sort(byLength).forEach(function (list) {
|
||||
result = result.filter(function (item) {
|
||||
return !contains.call(list, item);
|
||||
}).concat(filter.call(list, function (x) {
|
||||
return !contains.call(seen, x);
|
||||
}));
|
||||
push.apply(seen, toArray(list));
|
||||
});
|
||||
return result;
|
||||
};
|
||||
Reference in New Issue
Block a user