What does a + prefix do in this context?

后端 未结 5 682
栀梦
栀梦 2021-01-27 04:23

Here is a line of code from underscore. What is that plus prefix for in this line?

if (obj.length === +obj.length) { // plus prefix?
5条回答
提交回复
热议问题