0.0.5 • Published 6 years ago

@yuricoden/simplifyjs v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

alt text

simplify.js

simplify.js is a powerfull functional JavaScript library.

Link

It is a speed-fast library for working with objects and arrays. Also included are methods for working with functions such as curry,memoize and etc...

Wiki |

Usage:

Connect the script in your browser:

<script src="library/simplify.min.js"></script>

or add to project

import 'fy' from 'simplify';

Try code:

        const product = [
          { product: 'bitcoin' },
          { product: 'liteoin'  },
          { product: 'goldcoin' }
        ];

        const coins = [
            {
            name: 'coin',
            value: '32133'
            },
            {
            name: 'coin',
            value: '133'
            },
            {
            name: 'coin',
            value: '767'
            }
        ];

        let result = fy.zip(coins, product, function(coin,product) {
          coin.products = product;
          return coin
        });

curry, memoize also is in the assembly

      function multiplication(x,y) {
        return x * y
      }
      let fun = fy.curry(add)
      console.log(fun(2)(6))