Unexpected behavior of bound function
问题 Tried to create a function mapping numeric characters (i.e. '0' to '9') to true and other characters to false : const isNumeric = String.prototype.includes.bind('0123456789'); isNumeric('1') and isNumeric('0') returned true . Expected ['1', '0'].every(isNumeric) to be true too but it turned out to be false. Something I'm missing? This was on node v10.16.3 回答1: includes has a second parameter called position which is the position within the string at which to begin searching. every , like