issues
search
shfshanyue
/
Daily-Question
互联网大厂内推及大厂面经整理,并且每天一道面试题推送。每天五分钟,半年大厂中
https://q.shanyue.tech
4.94k
stars
510
forks
source link
【Q618】列举 Number、String、Array、Object、Promise 有哪些 API
#636
Open
shfshanyue
opened
3 years ago
shfshanyue
commented
3 years ago
Number
Number.isNaN()
Number.isInteger()
Number.isInfinite()
Number.isSafeInteger()
Number.prototype.toFixed()
String
String.fromCharCode()
String.raw()
String.prototype.charAt()
String.prototype.charCodeAt()
String.prototype.concat()
String.prototype.startsWith()
String.prototype.endsWith()
String.prototype.includes()
String.prototype.indexOf()
String.prototype.lastIndexOf()
String.prototype.charAt()
String.prototype.charCodeAt()
String.prototype.trim()
如何手写实现 trim
String.prototype.trimStart()
String.prototype.trimEnd()
String.prototype.repeat()
String.prototype.replace()
String.prototype.slice()
String.prototype.split()
String.prototype.substring()
String.prototype.padStart()
String.prototype.padEnd()
String.prototype.search()
String.prototype.match()
String.prototype.toLowerCase()
String.prototype.toUpperCase()
Array
Array.isArray()
Array.from()
如何生成
[0, 1, 2, ..., 99]
的数组
Array.of()
Array.prototype.slice()
Array.prototype.splice()
Array.prototype.sort()
Array.prototype.reverse()
Array.prototype.indexOf
Array.prototype.lastIndexOf()
Array.prototype.includes()
Array.prototype.push()
Array.prototype.pop()
Array.prototype.shift()
Array.prototype.unshift()
如何给数组首项添加元素
Array.prototype.map()
Array.prototype.reduce()
Array.prototype.forEach()
Array.prototype.filter()
Array.prototype.every()
Array.prototype.some()
Array.prototype.flat()
Array.prototype.flatMap()
Array.prototype.toString()
Object
Object.create()
Object.assign()
Object.defineProperties()
Object.defineProperty()
Object.keys()
Object.values()
Object.entries()
Object.fromEntries()
Object.is()
Number
String
Array
[0, 1, 2, ..., 99]
的数组Object