The-NodeJS-Master-Class
The-NodeJS-Master-Class copied to clipboard
Section 4 Lesson 34 - Using Templates: repo: lib/helpers.js
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