The-NodeJS-Master-Class icon indicating copy to clipboard operation
The-NodeJS-Master-Class copied to clipboard

Section 4 Lesson 34 - Using Templates: repo: lib/helpers.js

Open dionys93 opened this issue 7 years ago • 0 comments

https://github.com/pirple/The-NodeJS-Master-Class/blob/728dd393177a215e487de112671a970350d24d50/Section%204/Using%20Templates/lib/helpers.js#L171

if(data.hasOwnProperty(key) && typeof(data[key] == 'string')){

Comparison operator is inside parens

if(data.hasOwnProperty(key) && typeof(data[key]) == 'string'){

Should be outside

dionys93 avatar Jul 22 '18 23:07 dionys93