javascript-collections-framework
    Preparing search index...

    Function isSequencedCollection

    • Returns whether value is a sequenced collection from this library — a collection with a first and last element, such as a list or one of its views — of the same major version, from any loaded copy of the package.

      Time: O(1), plus any getter or proxy trap that reading a property of value runs.

      Parameters

      • value: unknown

        Any value.

      Returns value is ReadonlySequencedCollection<unknown>

      true when value is a library sequenced collection.

      whatever a getter or proxy trap on value throws while the property is read.

      isSequencedCollection(new ArrayList([1])) // true
      isSequencedCollection([1]) // false