cgiffard/TextStatistics.js — pull request #5 by Techworker (2014-06-06 12:25:36+00:00)
Title: Updated check on problemWords property

We end up with NaN values when the current word is a non-direct property of the problemWords object.

Error:
problemWords["constructor"] => function() { ... }

Solution:
problemWords.hasOwnProperty("constructor") => false