|
if @options.forceString and not typeof value is "string" |
This code not typeof value is "string" will compile to the following js:
! typeof value === "string"
it is the same as (! typeof value) === "string". So, the express will always be false.
we need ! (typeof value === "string") or typeof value !== "string".
node-cache/_src/lib/node_cache.coffee
Line 167 in 3d6ef83
This code
not typeof value is "string"will compile to the following js:! typeof value === "string"it is the same as
(! typeof value) === "string". So, the express will always be false.we need
! (typeof value === "string")ortypeof value !== "string".