Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
errors.slice();
}
});
deep([], string);
deep([""], string);
deep([0], string);
// Wrong key type:
// $ExpectError
deep([null], string);
// Wrong order:
// $ExpectError
deep(string, []);
// Missing path:
// $ExpectError
deep(string);
// Decoder instead of `() => decoder`:
// $ExpectError
lazy(string);
tuple((item, itemError, arr, errors) => {
arr.slice();
// arr is an array, not an object.
// $ExpectError
use(arr.test);
// errors can be null.
// $ExpectError
errors.slice();
if (errors != null) {
errors.slice();
}
});
deep([], string);
deep([""], string);
deep([0], string);
// Wrong key type:
// $ExpectError
deep([null], string);
// Wrong order:
// $ExpectError
deep(string, []);
// Missing path:
// $ExpectError
deep(string);
// Decoder instead of `() => decoder`:
// $ExpectError
lazy(string);