|
31 | 31 | Proudly supported by...<br/>
|
32 | 32 | <a href="https://www.browserstack.com/"><img src="browserstack.png" width=240 alt="BrowserStack"/></a>
|
33 | 33 | </div>
|
34 | | -<div align="center"> |
35 | | - <img src="pico-lambda-stats.png" /> |
36 | | -</div> |
37 | | - |
38 | | - |
| 34 | +## Rationale |
| 35 | +We needed to optimize the bundle size of our projects. Since we were already using ES6 and transpiling it, we decided to create a functional library that takes the native Array and String APIs used by major browsers and Nodejs, and make them *functional* - so we can `curry`, `compose`, and `pipe` them. If you are either already transpiling es6 in your project, or you are not supporting older browsers, you should use this instead of `ramda` or `lodash/fp`. If you need to support older browsers, are not transpiling es6, or using es5 - you should use `lodash/fp` or `ramda` |
39 | 36 |
|
40 | 37 | ## why pico-lambda
|
41 | | -- **Pico:** weighs less than 640 bytes when minified and gzipped. |
| 38 | +- **Pico:** weighs less than 700 bytes when minified and gzipped. |
42 | 39 | - **Useful:** takes most native JavaScript array and string methods and makes them *immutable*, *curried*, and *composable*.
|
43 | 40 | - **Functional:** Curry, compose and pipe, Oh My!
|
44 | 41 | - **Familiar:** same names just curried and composable. See [JavaScript Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) and [JavaScript String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).
|
45 | 42 | - **Degrades Gracefully:** a small set of these functions are not available in every browser/environment. When not available in the browser it will not be available in Pico Lambda.
|
46 | 43 |
|
47 | | -> Pico-lambda was made for the ES2015 Javascript Runtime. It has __no dependencies__. |
| 44 | +> Pico-lambda was made for the ES6 Javascript Runtime. It has __no dependencies__. |
48 | 45 |
|
49 | 46 | * * *
|
50 | 47 |
|
@@ -962,4 +959,4 @@ Returns the primitive value of a string.
|
962 | 959 | ```js
|
963 | 960 | valueOf("abc") //=> 'abc'
|
964 | 961 | ```
|
965 | | -> See [String.valueOf (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf) |
| 962 | +> See [String.valueOf (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf) |
0 commit comments