Skip to content

Commit d0b5e48

Browse files
committed
Added not-upper module
1 parent 1c61438 commit d0b5e48

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ const notObj = require('./src/not-obj')
118118
const notPair = require('./src/not-pair')
119119
const notRegExp = require('./src/not-reg-exp')
120120
const notStr = require('./src/not-str')
121+
const notUpper = require('./src/not-upper')
121122
const nullary = require('./src/nullary')
122123
const num = require('./src/num')
123124
const odd = require('./src/odd')
@@ -316,6 +317,7 @@ module.exports = {
316317
notPair,
317318
notRegExp,
318319
notStr,
320+
notUpper,
319321
nullary,
320322
num,
321323
odd,

src/not-upper.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict'
2+
const curry = require('./curry')
3+
const isUpper = require('./is-upper')
4+
const not = require('./not')
5+
6+
function notUpper(x) {
7+
return not(isUpper(x))
8+
}
9+
10+
module.exports = curry(notUpper)

0 commit comments

Comments
 (0)