File.prototype.prev()

Return a file’s previous sibling, ignoring bucket boundaries.

Syntax

file.prev() File file.prev() null

Description

Return a file’s previous sibling, ignoring bucket boundaries. If it doesn’t exist, null is returned.

Examples

Example when previous sibling exists.

Example when prev sibling does NOT exist.