prototype.includes(), in 연산자, hasOwnProperty(), Array.prototype.some
in 연산자는 객체에 사용하는 용도 이다. 즉 객체가 갖는 프로퍼티와 메소드 존재 여부를 검증해 true, false로 리턴한다. 이 때 주의할 점은 배열 사용시, 내용이 아닌 인덱스 값을 검증한다. var soccerplayer = new Array("nedved", "ronaldo", "ronaldinho", "henry", "jisungpark"); "henry" in soccerplayer // false length in socerplayer // true 즉 내용을 찾는 검증을 위해 쓰면 안되고, 프로퍼티가 있는지, 메소드가 존재하는지를 검증하기 위해 사용해야만 한다. 그렇다면 문자열이나 배열에서 값을 검증하고 싶을 때는 어떻게 하나ㅏ? 그럴 때, ES6에서 추가 된 메서드 includes()..