Closed SlugFiller closed 4 years ago
If using copyMessage with deep=true, an error is thrown in most cases. The reason is in this line: if(typeof o === 'object') {
if(typeof o === 'object') {
The issue is that typeof null === 'object'. The line needs to be changed to: if(typeof o === 'object' && o !== null) {
typeof null === 'object'
if(typeof o === 'object' && o !== null) {
Fixed that, thanks!
If using copyMessage with deep=true, an error is thrown in most cases. The reason is in this line:
if(typeof o === 'object') {
The issue is that
typeof null === 'object'
. The line needs to be changed to:if(typeof o === 'object' && o !== null) {