Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
5ee3dc195bede24b11691b48da315d3267b5c2e6
1 parent
a5feb93e
isEqualOr
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
public/js/common/helpers/isEqualOr.js
public/js/common/helpers/isEqualOr.js
0 → 100644
View file @
5ee3dc1
module
.
exports
=
function
()
{
let
args
=
Array
.
prototype
.
slice
.
call
(
arguments
);
let
v1
=
args
[
0
];
let
opt
=
args
[
args
.
length
-
1
];
let
isTrue
=
false
;
for
(
let
i
=
1
;
i
<
args
.
length
-
1
;
i
++
)
{
if
(
v1
===
args
[
i
])
{
isTrue
=
true
;
break
;
}
}
if
(
isTrue
)
{
return
opt
.
fn
(
this
);
// eslint-disable-line
}
else
{
return
opt
.
inverse
(
this
);
// eslint-disable-line
}
};
...
...
Please
register
or
login
to post a comment