UNPKG
indicative-utils
Version:
alpha (1.0.1)
latest (7.0.4)
7.0.4
7.0.3
7.0.1
7.0.0
6.0.0
1.0.2
1.0.1
1.0.0
Reusable utilities for indicative validation library
indicative-utils
/
build
/
src
/
patchValue.js
10 lines
(9 loc)
•
288 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
patchValue
(
data, field, fieldValue
) { data.
tip
[field] = fieldValue;
if
(field ===
'::tip::'
) { data.
parentArray
[data.
currentIndex
] = fieldValue; } }
exports
.
patchValue
= patchValue;