3.0.0 • Published 4 years ago

@juan-utils/functions v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Functions

Package with standalone functions. Functions are divided into modules but exported as a single module. As of writing this, typescript typings are included. Documentation comming soon...

Core

Support functions for other packages. Includes:

  • curry2
  • curry3
  • identity
  • justOf
  • prop
  • propMap
  • path
  • keysOf
  • memo
  • memoBy
  • pipe
  • compose
  • log
  • cardinal
  • flip
  • call
  • bind
  • apply
  • take
  • takeOrdinal
  • takeFirst
  • takeSecond
  • takeThird
  • callWith
  • applyWith

Lens

small module with a lens that meets the lens laws. Includes:

  • lens
  • view
  • set
  • over

Array

module with array functions. All functions are iteratee first, data second. Includes:

  • length
  • createArray
  • map
  • filter
  • reduce
  • isEmpty
  • belongs
  • head
  • tail
  • reverse
  • binaryUnion
  • union
  • difference
  • zip
  • inclusiveZip
  • flatten
  • range
  • repeat

Logic

Includes:

  • True
  • False
  • extract
  • not
  • and
  • or
  • allPass
  • anyPass
  • nonePass
  • conditional
  • defaultTo
  • unless
  • until

Math

Includes:

  • add
  • sub
  • mult
  • div
  • mod
  • pow
  • gte
  • gt
  • lte
  • lt
  • eq
  • neq
  • eqBy
  • min
  • max
  • isEven
  • isOdd
  • half
  • floor
  • ceil
  • abs
  • inverse
  • toDegrees
  • toRadians
  • inc
  • dec
  • mean
  • random
  • integerRandom

Object

Includes:

  • mapKeys
  • mapValues
  • pick
  • diff
  • omit
  • strip
  • entries
  • fromEntries
  • clone
  • deepClone

Types

Includes:

  • shareConstructor
  • typeEquals
  • isInstanceOf
  • isFunction
  • isObject
  • isArray
  • isNil
  • isDefined
  • isNaN
  • asymEquals
  • shallowEquals
  • equals
  • multiEquals
  • multiShallowEquals
3.0.0

4 years ago

2.8.4

4 years ago

2.8.1

4 years ago

2.8.3

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.4

4 years ago

2.2.1

4 years ago

2.2.2

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.2-alpha.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.32-alpha.0

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago