Ticket #966 (new enhancement)

Opened 3 years ago

Last modified 18 months ago

array methods return non-numeric values

Reported by: FND Owned by: JeremyRuston
Priority: minor Milestone: 2.7.1
Component: core Version:
Severity: low Keywords:
Cc:

Description (last modified by FND) (diff)

Certain Array methods (e.g. Array.prototype.findByField) return non-numeric values in case there was no match.

These should be changed to return -1.

Change History

Changed 3 years ago by FND

  • description modified (diff)

Array.prototype.contains is actually not relevant here.

Changed ticket description accordingly.

Changed 18 months ago by MartinBudden

  • milestone changed from 2.6.2 to 2.7.1

Milestone 2.6.2 deleted

Note: See TracTickets for help on using tickets.