Implement an equivalent of Array.includes
from JS in Fauna.
Proposed specs
Includes(haystack: Array, needle: String | Number): Boolean;
Returns true
if needle
is in haystack
, otherwise, returns false
.
Further readings: Array.prototype.includes() - JavaScript | MDN