File tree 4 files changed +12
-9
lines changed
4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
# is-pure-function #
2
2
3
- [ ![ NPM version] [ npm-image ]] [ npm-url ] ![ dependencies] [ dependencies-image ] [ ![ License MIT] [ license-image ]] ( LICENSE )
3
+ [ ![ NPM version] [ npm-image ]] [ npm-url ] ![ dependencies] [ dependencies-image ] [ ![ License MIT] [ license-image ]] ( LICENSE )
4
4
5
- Simple and fast ES3-check that function is pure.
5
+ [ ![ NPM] ( https://nodei.co/npm/is-pure-function.png )] ( https://nodei.co/npm/is-pure-function/ )
6
+
7
+ Simple and fast ES3-check that function is pure.
6
8
``` js
7
9
/**
8
10
* @param {function} fn
9
11
* @param {*} thisArg
10
12
* @param {Array} args
11
13
* @return {boolean}
12
14
*/
13
- function isPureFunction (fn , thisArg , args ) {};
15
+ function isPureFunction (fn , thisArg , args ) {/** ... */ };
14
16
```
15
17
* fn* is pure, if not throw when called with * thisArg* as this and * args* as arguments in global scope.
16
18
@@ -126,7 +128,7 @@ $ npm test
126
128
```
127
129
128
130
## License ##
129
- [ MIT] ( LICENSE )
131
+ [ MIT] ( LICENSE )
130
132
131
133
[ license-image ] : https://img.shields.io/badge/license-MIT-blue.svg " license-image "
132
134
[ dependencies-image ] : https://img.shields.io/gemnasium/mathiasbynens/he.svg?maxAge=2592000 " dependencies-image "
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " is-pure-function" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " Return true, if function is pure." ,
5
5
"main" : " src/is-pure-function.js" ,
6
6
"scripts" : {
19
19
"dependencies" : {},
20
20
"devDependencies" : {
21
21
"webpack" : " >=1.0.0" ,
22
+ "mocha" : " ^3.0.2" ,
22
23
"opener" : " *"
23
24
},
24
25
"author" : " uid-11222" ,
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html> < meta charset ="utf-8 "> < title > Mocha tests</ title >
2
- < link href ="https://cdnjs.cloudflare.com/ajax/libs/ mocha/3.0.2/ mocha.min .css " rel ="stylesheet ">
3
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/ mocha/3.0.2/ mocha.min .js "> </ script >
2
+ < link href ="../node_modules/ mocha/mocha.css " rel ="stylesheet ">
3
+ < script src ="../node_modules/ mocha/mocha.js "> </ script >
4
4
< div id ="mocha "> </ div >
5
5
< script > mocha . setup ( 'bdd' ) ; </ script >
6
6
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html> < meta charset ="utf-8 "> < title > Mocha tests</ title >
2
- < link href ="https://cdnjs.cloudflare.com/ajax/libs/ mocha/3.0.2/ mocha.min .css " rel ="stylesheet ">
3
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/ mocha/3.0.2/ mocha.min .js "> </ script >
2
+ < link href ="../node_modules/ mocha/mocha.css " rel ="stylesheet ">
3
+ < script src ="../node_modules/ mocha/mocha.js "> </ script >
4
4
< div id ="mocha "> </ div >
5
5
< script > mocha . setup ( 'bdd' ) ; </ script >
6
6
You can’t perform that action at this time.
0 commit comments