Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/connorjameslow/butwhy
Some things about JavaScript that I think are weird, in library form.
https://github.com/connorjameslow/butwhy
Last synced: 17 days ago
JSON representation
Some things about JavaScript that I think are weird, in library form.
- Host: GitHub
- URL: https://github.com/connorjameslow/butwhy
- Owner: ConnorJamesLow
- License: mit
- Created: 2020-04-04T00:31:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-04T03:20:59.000Z (almost 5 years ago)
- Last Synced: 2025-01-06T00:39:39.911Z (18 days ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# butwhy: Some things about JavaScript I think are weird, in library form
Most of the stuff in here doesn't serve any practical purpose.## API
### Functions
#### decouple(a, ...p)
Copy an object and, if a property is a `Function`, bind it to the result.
```js
const { map, concat } = decouple([0], 'map', 'concat', 'unshift');
map(i => i + 1) // -> [1]
```