Method is used for arrange your object keys from array. it will put all object keys with same key+value in duplicatedKeys itt will put all object keys with different key+values in uniqueKeys ...