Articles tagged with #object




Object Inject - Insert Item into Javascript Hash

Objects (or hash) in javascript is commonly considered an associative array. They can be a little trickier to deal with than normal array. Recently I needed to insert an item into an object at a very specific location, dependent on some logic. Well with an object it is a bit …