mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Fix bug typo in setDeepProperty
This commit is contained in:
parent
2174224244
commit
083600750b
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ function getDeepProperty(obj, target) {
|
|||
|
||||
@param target path of properties as an array
|
||||
*/
|
||||
function setDeepProperty(obj, value, ...target) {
|
||||
function setDeepProperty(obj, value, target) {
|
||||
if (target.length > 1) {
|
||||
// If necessary antecedent objects don't exist, create them.
|
||||
if (obj[target[0]] === undefined) {
|
||||
|
|
Loading…
Add table
Reference in a new issue