I hereby claim:
- I am renatobenks on github.
- I am renatobenks (https://keybase.io/renatobenks) on keybase.
- I have a public key ASBI2LH7d-io18f6HxsSnBebghEvFtOb5YQcCp7-qrcoigo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| function compose(...funcs) { | |
| if (funcs.length === 0) return arg => arg; | |
| if (funcs.length === 1) return funcs[0]; | |
| return funcs.reduce((a, b) => (...args) => a(b(...args))) | |
| } |
| // @flow | |
| const FOLLOWING_ENUM = { | |
| S: true, | |
| N: false, | |
| }; | |
| type FollowingEnum = $Values<typeof FOLLOWING_ENUM>; | |
| const SANITIZED_KEYS = { |
| const removeDuplicateValues = values => values.filter((number, i, array) => array.indexOf(number) === i); | |
| const getBinaryFromNumber = number => (number >>> 0).toString(2); | |
| const getNumbers = numbers => | |
| numbers.map(number => ({ | |
| binary: getBinaryFromNumber(number), | |
| value: number, | |
| })); |
| #!/usr/bin/env babel-node --optional es7.asyncFunctions | |
| /** | |
| * This file provided by Facebook is for non-commercial testing and evaluation | |
| * purposes only. Facebook reserves all rights not expressly granted. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
| * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | |
| * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| { | |
| "scripts": { | |
| "update-schema": "babel-node ./scripts/updateSchema.js" | |
| } | |
| } |