https://github.com/gutenye/lodash-guten
Guten's extension to lodash
https://github.com/gutenye/lodash-guten
Last synced: about 2 months ago
JSON representation
Guten's extension to lodash
- Host: GitHub
- URL: https://github.com/gutenye/lodash-guten
- Owner: gutenye
- Created: 2015-11-08T03:02:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-21T04:08:35.000Z (over 8 years ago)
- Last Synced: 2025-03-15T01:08:28.506Z (3 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Guten's personal version of lodash
The idea is use semantic words as much as possible, for example, `array.insert(index, value)` instead of `array.splice(index, 0, value)`.
Forked from [lodash](https://github.com/lodash/lodash), with additions:
**Array**
```
deleteAt(array, index)
insert(array, index, value)
swap(array, i, j)
moveTo(array, i, j)
wrapArray(array_s)`
```**Object**
```
mapOwn(object, callback{value, key, result})
pickBang(object, key, ...)
```**DOM**
```
fetch(url, options)
params(params)
keystroke(event) -> "a" "ctrl-a" "ctrl-alt-shift-cmd-a" `
```need `node --harmony` for pickBang
Install
-------In Browser
```
$ bower install lodash lodash-guten```
In Node
```
$ npm install lodash-guten
import _ from "lodash-guten"
global._ = _
```