Module: sql-processors/limit

Exports the limit function.
Source:

Requires

  • module:lodash

Methods

(inner) limit(limit, data) → {Array}

Executes the SQL LIMIT statement on an dataay of Objects.
Parameters:
Name Type Description
limit Number
data Array
Source:
Returns:
Type
Array