Skypanther Studios
  • Home
  • Door2Door
  • About

Posts in category JavaScript

Delete a member of an array



Delete a member of an array

Here’s a quickie: Need to delete a member of an array in JavaScript? The traditional way is with the splice() method. Here’s an alternative using filter(): var deleteFromArray = function(array, valToRemove) { return array.filter(function(member) { return member !== valToRemove; }); }; Demonstrated in the JavaScript console: The filter() method examines each member of your array [...]

READ MORE »

Tweets

  • Could not connect to Twitter

Recent Posts

  • Breakpoint debugging an Alloy app
  • Titanium graphs with a WebView
  • See the Mac Console for full error details
  • Split window editing in TiStudio
  • Delete a member of an array

EvoLve Pro theme by Theme4Press  •  Powered by WordPress Skypanther Studios
Empowering a mobile world