Array.prototype.distinct()

Description:

Remove the duplicated item from array.

Parameters:

  • N/A

Returned Value:

  • Cleaned array object.

Sample:

var arrayObject = [1, 2, 3, 2, 6, 4, 3, 7];
arrayObject=arrayObject.distinct();
//Result: arrayObject = [1, 2, 3, 6, 4, 7];

Last edited Feb 5, 2013 at 9:10 AM by rynnwang, version 1

Comments

No comments yet.