Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6893eb57
...
6893eb57116d7ec5e239f73bb10933f0cc827e38
authored
2012-12-18 18:51:04 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed utils.isTruthy() and utils.isFalsy()
1 parent
940b862f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
modules/utils.js
modules/utils.js
View file @
6893eb5
...
...
@@ -295,7 +295,7 @@ exports.isClipRect = isClipRect;
function
isFalsy
(
subject
)
{
"use strict"
;
/*jshint eqeqeq:false*/
return
subject
==
new
Function
(
'return false;'
)()
;
return
!
subject
;
}
exports
.
isFalsy
=
isFalsy
;
/**
...
...
@@ -392,7 +392,7 @@ exports.isString = isString;
function
isTruthy
(
subject
)
{
"use strict"
;
/*jshint eqeqeq:false*/
return
subject
==
new
Function
(
'return true;'
)()
;
return
!!
subject
;
}
exports
.
isTruthy
=
isTruthy
;
...
...
Please
register
or
sign in
to post a comment