mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-07 13:06:47 +00:00
26 lines
497 B
JavaScript
26 lines
497 B
JavaScript
|
/*\
|
||
|
title: $:/core/modules/filterrunprefixes/all.js
|
||
|
type: application/javascript
|
||
|
module-type: filterrunprefix
|
||
|
|
||
|
Union of sets without de-duplication.
|
||
|
Equivalent to = filter run prefix.
|
||
|
|
||
|
\*/
|
||
|
(function(){
|
||
|
|
||
|
/*jslint node: true, browser: true */
|
||
|
/*global $tw: false */
|
||
|
"use strict";
|
||
|
|
||
|
/*
|
||
|
Export our filter prefix function
|
||
|
*/
|
||
|
exports.all = function(operationSubFunction) {
|
||
|
return function(results,source,widget) {
|
||
|
Array.prototype.push.apply(results,operationSubFunction(source,widget));
|
||
|
};
|
||
|
};
|
||
|
|
||
|
})();
|