본문 바로가기

Javascript19

ios에서 Javascript로 new Date() 사용시 주의점 Ios에서는 new Date('2022-10-13 15:40:00'); 와 같은 형식으로 생성하면 Invalid Date가 된다. 웹, 안드로이드에서는 정상 동작해서 원인 파악하기 힘들다. https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Date Date - JavaScript | MDN JavaScript Date 객체는 시간의 한 점을 플랫폼에 종속되지 않는 형태로 나타냅니다. Date 객체는 1970년 1월 1일 UTC(협정 세계시) 자정과의 시간 차이를 밀리초로 나타내는 정수 값을 담습니다. developer.mozilla.org 여기서 예시로 들어간 방식은 let today = new Date() let .. 2022. 10. 13.
Array.prototype.some() https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/some Array.prototype.some() - JavaScript | MDN some() 메서드는 배열 안의 어떤 요소라도 주어진 판별 함수를 통과하는지 테스트합니다. developer.mozilla.org https://www.w3schools.com/jsref/jsref_some.asp JavaScript Array some() Method W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering pop.. 2021. 11. 25.
Array.prototype.every() https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/every Array.prototype.every() - JavaScript | MDN every() 메서드는 배열 안의 모든 요소가 주어진 판별 함수를 통과하는지 테스트합니다. Boolean 값을 반환합니다. developer.mozilla.org https://www.w3schools.com/jsref/jsref_every.asp JavaScript Array.every() Method W3Schools offers free online tutorials, references and exercises in all the major languages of.. 2021. 11. 16.
Array.prototype.entries() https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/entries Array.prototype.entries() - JavaScript | MDN entries() 메서드는 배열의 각 인덱스에 대한 키/값 쌍을 가지는 새로운 Array Iterator 객체를 반환합니다. developer.mozilla.org https://www.w3schools.com/jsref/jsref_entries.asp JavaScript Array entries() Method W3Schools offers free online tutorials, references and exercises in all the major lan.. 2021. 11. 16.