From 57d2b780939d293af0ca157a2dcefb2a841cba1d Mon Sep 17 00:00:00 2001 From: 104player Date: Tue, 22 Mar 2016 15:33:18 -0700 Subject: [PATCH] Update index.html Update docs for include function --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index d6c022b..fea9d84 100644 --- a/docs/index.html +++ b/docs/index.html @@ -304,7 +304,7 @@

Iterator Functions

_.include(iter, value)

Returns true if the list include's value. Uses the == operator.

-
_.include({1,2,3,4}, function(i) return i%2 == 0 end)
=> true
_.include({1,3,5}, function(i) return i%2 == 0 end)
=> false
+
_.include({1,2,3,4}, 2)
=> true
_.include({1,3,5}, 2)
=> false