Skip to content

Commit

Permalink
Added not-upper module
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Nov 16, 2018
1 parent 1c61438 commit d0b5e48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const notObj = require('./src/not-obj')
const notPair = require('./src/not-pair')
const notRegExp = require('./src/not-reg-exp')
const notStr = require('./src/not-str')
const notUpper = require('./src/not-upper')
const nullary = require('./src/nullary')
const num = require('./src/num')
const odd = require('./src/odd')
Expand Down Expand Up @@ -316,6 +317,7 @@ module.exports = {
notPair,
notRegExp,
notStr,
notUpper,
nullary,
num,
odd,
Expand Down
10 changes: 10 additions & 0 deletions src/not-upper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict'
const curry = require('./curry')
const isUpper = require('./is-upper')
const not = require('./not')

function notUpper(x) {
return not(isUpper(x))
}

module.exports = curry(notUpper)

0 comments on commit d0b5e48

Please sign in to comment.