Firebase.update failed : first argument contains undefined in property

前端 未结 4 1551
无人及你
无人及你 2021-02-04 23:47

I have a simple Firebase function that updates some data. However, the interpreter says that the first argument contains \"undefined\" in property \'users.tester1\'. Can somebod

4条回答
  •  长发绾君心
    2021-02-05 00:37

    to make sure your object does not contain any undefined props use this simple trick:

    JSON.parse( JSON.stringify(YourJsonData ) )
    

    For more info take a look at this codePen: http://codepen.io/ajmueller/pen/gLaBLX

提交回复
热议问题