TextStories

A collection of stories.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

anyItem(
)
 → Story
count(
)
 → number
everyItem(
)
 → Story
firstItem(
)
 → Story
item(
index)
 → Story
itemByID(
id)
 → Story
itemByName(
name)
 → Story
itemByRange(
from, to)
 → Story
lastItem(
)
 → Story
middleItem(
)
 → Story
nextItem(
obj)
 → Story
previousItem(
obj)
 → Story
toSource(
)
 → string
anyItem(
)
 → Story
Returns any Story in the collection.
count(
)
 → number
Displays the number of elements in the Story.
everyItem(
)
 → Story
Returns every Story in the collection.
firstItem(
)
 → Story
Returns the first Story in the collection.
item(
index)
 → Story
Returns the Story with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → Story
Returns the Story with the specified ID.
id number The ID.
itemByName(
name)
 → Story
Returns the Story with the specified name.
name string The name.
itemByRange(
from, to)
 → Story
Returns the Stories within the specified range.
from The Story, index, or name at the beginning of the range. Can accept: Story, Long Integer or String.
to The Story, index, or name at the end of the range. Can accept: Story, Long Integer or String.
lastItem(
)
 → Story
Returns the last Story in the collection.
middleItem(
)
 → Story
Returns the middle Story in the collection.
nextItem(
obj)
 → Story
Returns the Story whose index follows the specified Story in the collection.
obj Story The Story whose index comes before the desired Story.
previousItem(
obj)
 → Story
Returns the Story with the index previous to the specified index.
obj Story The index of the Story that follows the desired Story.
toSource(
)
 → string
Generates a string which, if executed, will return the Story.