Miembros
-
length :number
-
Descripción
Get the size of the collection
Detalles
Métodos
-
every( qu ) → {boolean}
-
Descripción
Returns true if all items match the query. Aliases as
allParámetros
Nombre Tipo Descripción quobject The query to execute
Returns
Detalles
-
some( qu ) → {boolean}
-
Descripción
Returns true if any of the items match the query. Aliases as
anyParámetros
Nombre Tipo Descripción quobject The query to execute
Returns
Detalles
-
unique( qu ) → {array}
-
Descripción
Returns the set of unique records that match a query
Parámetros
Nombre Tipo Descripción quobject The query to execute.
Returns
Detalles
-
all( qu ) → {boolean}
-
Descripción
Returns true if all items match the query. Aliases as
everyParámetros
Nombre Tipo Descripción quobject The query to execute
Returns
Detalles
-
any( qu ) → {boolean}
-
Descripción
Returns true if any of the items match the query. Aliases as
allParámetros
Nombre Tipo Descripción quobject The query to execute
Returns
Detalles
-
remove( qu ) → {object|array}
-
Descripción
Remove all items in the object/array that match the query
Parámetros
Nombre Tipo Descripción quobject The query to execute. See module:ink/probe.queryOperators for the operators you can use.
Returns
Detalles
-
findOneKey( qu ) → {object}
-
Descripción
Returns the first record that matches the query and returns its key or index depending on whether
objis an object or array respectively.
Aliased asseekKey.Parámetros
Nombre Tipo Descripción quobject The query to execute.
Returns
Detalles
-
findOne( qu ) → {object}
-
Descripción
Returns the first record that matches the query. Aliased as
seek.Parámetros
Nombre Tipo Descripción quobject The query to execute.
Returns
Detalles
-
findKeys( qu ) → {array}
-
Descripción
Find all records that match a query and returns the keys for those items. This is similar to module:ink/probe.find but instead of returning
records, returns the keys. Ifobjis an object it will return the hash key. If 'obj' is an array, it will return the indexParámetros
Nombre Tipo Descripción quobject The query to execute.
Returns
Detalles
-
find( qu ) → {array}
-
Descripción
Find all records that match a query
Parámetros
Nombre Tipo Descripción quobject The query to execute.
Returns
Detalles
-
update( qu, setDocument )
-
Descripción
Updates all records in obj that match the query. See module:ink/probe.updateOperators for the operators that are supported.
Parámetros
Nombre Tipo Descripción quobject The query which will be used to identify the records to updated
setDocumentobject The update operator. See module:ink/probe.updateOperators
Detalles