Skip to content
Jay Shah edited this page Aug 14, 2015 · 24 revisions

Below is the quick reference for all function this library has.

Array functions

arr.unique()                      // Get unique elements from one dimensional array
arr.has_duplicates()              // Returns True/False if array has duplicate element
arr.has_duplicates_assoc('phone') // Returns True/False if associative array has duplicate element based on key provided
arr.duplicates()                  // Returns object containing duplicate elements with their occurrences
arr.duplicates_assoc('phone')     // Returns object same as above but for associative array
Clone this wiki locally