From 274a9cc11a6b100c3aeff6d5edf4aa332ae492cc Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 24 Jul 2020 17:29:26 +0800 Subject: [PATCH] Update readme.md --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index dd7914b..daddc0a 100644 --- a/readme.md +++ b/readme.md @@ -98,8 +98,8 @@ Note: `is.number(NaN)` returns `false`. This intentionally deviates from `typeof Returns true if `value` is an array and all of its items match the assertion (if provided). ```js -is.array(value) // validate `value` is an array -is.array(value, is.number) // validate `value` is an array and all of it's items are numbers. +is.array(value); // Validate `value` is an array. +is.array(value, is.number); // Validate `value` is an array and all of its items are numbers. ``` ##### .function(value)