From 727a496f2ac688a17bb8ef856debd8f2a9e0b1b6 Mon Sep 17 00:00:00 2001 From: Adam Trager Date: Sun, 10 Dec 2023 01:29:56 -0500 Subject: [PATCH] Fix readme typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a3dcd72f..529adf0e 100644 --- a/README.md +++ b/README.md @@ -1536,7 +1536,7 @@ array().ensure().cast([1]); // => [1] #### `array.compact(rejector: (value) => boolean): Schema` -Removes falsey values from the array. Providing a rejecter function lets you specify the rejection criteria yourself. +Removes falsey values from the array. Providing a rejector function lets you specify the rejection criteria yourself. ```js array().compact().cast(['', 1, 0, 4, false, null]); // => [1, 4]