We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isObjectOf<T>
1 parent fbfda27 commit 299e25bCopy full SHA for 299e25b
is_bench.ts
@@ -170,6 +170,15 @@ Deno.bench({
170
}
171
},
172
});
173
+Deno.bench({
174
+ name: "is.ObjectOf (strict)",
175
+ fn: () => {
176
+ const pred = is.ObjectOf(predObj, { strict: true });
177
+ for (const c of cs) {
178
+ pred(c);
179
+ }
180
+ },
181
+});
182
183
const isObjectOfPred = is.ObjectOf(predObj);
184
Deno.bench({
@@ -181,6 +190,16 @@ Deno.bench({
190
191
192
193
+const isObjectOfStrictPred = is.ObjectOf(predObj, { strict: true });
194
195
+ name: "is.ObjectOf (pre, strict)",
196
197
198
+ isObjectOfStrictPred(c);
199
200
201
202
+
203
185
204
name: "is.Function",
186
205
fn: () => {
0 commit comments