diff --git a/data/filters.json b/data/filters.json index fb6f3b6..7ce480f 100644 --- a/data/filters.json +++ b/data/filters.json @@ -2075,7 +2075,7 @@ { "description": "Whether to use false values instead of the default.", "name": "allow_false", - "positional": true, + "positional": false, "required": false, "types": [ "boolean" @@ -2236,6 +2236,44 @@ "syntax": "string | escape_once", "name": "escape_once" }, + { + "category": "array", + "deprecated": false, + "deprecation_reason": "", + "description": "This requires you to provide both the property name and the associated value.", + "parameters": [], + "return_type": [ + { + "type": "untyped", + "name": "", + "description": "", + "array_value": "" + } + ], + "examples": [], + "summary": "Returns the first item in an array with a specific property value.", + "syntax": "array | find: string, string", + "name": "find" + }, + { + "category": "array", + "deprecated": false, + "deprecation_reason": "", + "description": "This requires you to provide both the property name and the associated value.", + "parameters": [], + "return_type": [ + { + "type": "number", + "name": "", + "description": "", + "array_value": "" + } + ], + "examples": [], + "summary": "Returns the index of the first item in an array with a specific property value.", + "syntax": "array | find_index: string, string", + "name": "find_index" + }, { "category": "array", "deprecated": false, @@ -2306,6 +2344,25 @@ "syntax": "number | floor", "name": "floor" }, + { + "category": "array", + "deprecated": false, + "deprecation_reason": "", + "description": "This requires you to provide both the property name and the associated value.", + "parameters": [], + "return_type": [ + { + "type": "boolean", + "name": "", + "description": "", + "array_value": "" + } + ], + "examples": [], + "summary": "Tests if any item in an array has a specific property value.", + "syntax": "array | some: string, string", + "name": "has" + }, { "category": "array", "deprecated": false, @@ -2596,6 +2653,25 @@ "syntax": "string | prepend: string", "name": "prepend" }, + { + "category": "array", + "deprecated": false, + "deprecation_reason": "", + "description": "This requires you to provide both the property name and the associated value.", + "parameters": [], + "return_type": [ + { + "type": "array", + "name": "", + "description": "", + "array_value": "untyped" + } + ], + "examples": [], + "summary": "Filters an array to exclude items with a specific property value.", + "syntax": "array | reject: string, string", + "name": "reject" + }, { "category": "string", "deprecated": false,