EndsWith
Copied!
EndsWith( value, search )
Description
The EndsWith
function returns true
when the value
string ends
with the search
string, or false
when it does not.
Examples
The following query demonstrates the case where the value
string
ends with the search
string:
Copied!
client.query(
q.EndsWith('Fauna', 'a')
)
.then((ret) => console.log(ret))
true
The following query demonstrates the case where the value
string
does not end with the search
string:
Copied!
client.query(
q.EndsWith('Fauna', 'A')
)
.then((ret) => console.log(ret))
false
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!