Hi all,
Is it possible to delete an entry from a JavaScript array? The entry in the list gets replaced with null when delete operator is used.
data = [{pid:30, pname:abc}, {pid:31, pname:def}, {pid:32, pname:zxc}]
delete data[1]
becomes:
data = [{pid:30, pname:abc}, null, {pid:32, pname:zxc}]
FYI I'm getting this as json back from an ajax call. The returned value is parsed like var data = YAHOO.lang.JSON.parse(result.value || '[]')