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.
1 parent c13c153 commit 78087d9Copy full SHA for 78087d9
lib/node_modules/@stdlib/array/to-fancy/lib/set.js
@@ -69,7 +69,7 @@ function factory( ctx ) {
69
if ( isIntegerString( property ) ) {
70
return setElement( target, property, value, ctx );
71
}
72
- if ( hasProperty( property ) || !isString( property ) ) {
+ if ( hasProperty( target, property ) || !isString( property ) ) {
73
return setValue( target, property, value, ctx );
74
75
if ( isArrayIndexString( property ) ) {
0 commit comments