Assigns property values in from object to values in the to object, but only if they already exist in toand have a matching typeof type.
Recurses up to recurseLevel nested objects, and skips assigning object-type properties beyond the recursion level. Arrays are copied by value.
If strToNum is true then source string types are considered compatible with destination numeric types (destination is responsible for conversion).
Assigns property values in
from
object to values in theto
object, but only if they already exist into
and have a matchingtypeof
type. Recurses up torecurseLevel
nested objects, and skips assigning object-type properties beyond the recursion level. Arrays are copied by value. IfstrToNum
istrue
then source string types are considered compatible with destination numeric types (destination is responsible for conversion).