Prototype $R() Method

Advertisements

The $R() function is simply a short hand to writing new ObjectRange(lowerBound, upperBound, excludeBounds).

Syntax:

$R(start, end[, exclusive = false]);

Here start is the starting element of the range and end is the last element of the range. If exclusive flag is set to false then it will include ending elements otherwise it will not be included in the range.