Browse the docs

endsWith

Tells whether the text ends with the given text.

Details #

endsWith(text, suffix) takes exactly two arguments and returns true or false. It is case-sensitive. Non-text values are turned into text first.

Parameters #

Takes 2 arguments. {{ endsWith(text, b) }}

Examples #

endsWith("report.pdf", ".pdf")
→ true
endsWith(lower(file), ".png")
→ true
Sample variableValue
filePHOTO.PNG