mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add _.remove, which removes an element from an array in place
This commit is contained in:
@@ -6,6 +6,7 @@ Keymap = require 'keymap'
|
||||
RootView = require 'root-view'
|
||||
|
||||
require 'jquery-extensions'
|
||||
require 'underscore-extensions'
|
||||
|
||||
# This a weirdo file. We don't create a Window class, we just add stuff to
|
||||
# the DOM window.
|
||||
|
||||
6
src/stdlib/underscore-extensions.coffee
Normal file
6
src/stdlib/underscore-extensions.coffee
Normal file
@@ -0,0 +1,6 @@
|
||||
_ = require 'underscore'
|
||||
|
||||
_.mixin
|
||||
remove: (array, element) ->
|
||||
array.splice(array.indexOf(element), 1)
|
||||
|
||||
Reference in New Issue
Block a user