Commit 43640cd7 by Vladislav Lagunov

Исправлен баг в валидации at декодеров

parent 1ce33da2
......@@ -513,7 +513,7 @@ export function doValidate<A>(decoder: Decoder<A>, value: unknown): Either<Probl
let iter = value as any;
decoder._path.forEach(k => DecoderBase.path.push(k + ''));
for (let i in decoder._path) {
if (iter === undefined || !iter.hasOwnProperty(decoder._path[i])) {
if (!iter || !iter.hasOwnProperty(decoder._path[i])) {
iter = undefined;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment