0.1.0 • Published 8 years ago

prelude-extension v0.1.0

Weekly downloads
8,270
License
ISC
Repository
github
Last release
8 years ago

Prelude Extension

Build Status Coverage Status

Install

npm install prelude-extension

Functions

batch :: Number -> [a] -> [[a]]

clamp :: Number -> Number -> Number

find-all :: String -> String -> Int -> [Int]

get :: a -> [String] -> b

is-empty-object :: object -> Boolean

is-equal-to-object :: a -> b -> Boolean

mappend :: a -> [String] -> b -> (b -> b -> b) -> a

partition-string :: String -> String -> [[Int, Int, Bool]]

rextend :: a -> b -> c

set :: a -> [String] -> b -> a

transpose :: [[a]] -> [[a]]

unwrap :: ([String] -> a -> b) -> Int -> c -> [b]

Development

  • run gulp to watch and build changes to index.ls
  • npm test for running unit tests
  • npm run coverage for running unit tests with code coverage