Skip to content

Commit cb9cebb

Browse files
committed
[template] none
1 parent 6da4d7a commit cb9cebb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rightech/utils",
3-
"version": "0.1.9",
3+
"version": "0.1.10",
44
"description": "",
55
"main": "index.js",
66
"private": false,

src/template.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ function some(input, value) {
4343
return input.some(one => value.includes(one));
4444
}
4545

46+
function none(input, value) {
47+
return !some(input, value);
48+
}
49+
4650
Object.assign(expressions.filters, {
4751
date: format.date,
4852
time: format.time,
@@ -53,7 +57,8 @@ Object.assign(expressions.filters, {
5357
currency: format.currency,
5458
percent: format.percent,
5559
every,
56-
some
60+
some,
61+
none
5762
});
5863

5964
function normalizePath(path) {

0 commit comments

Comments
 (0)