Ask about the function of a JS function.

function get(arr) {
  return arr.map(
      Function.prototype.call,
      String.prototype.trim
  )
}
// map
console.log(get(["a b", "u 2 1"]));
What does the above code mean? Ask for a detailed explanation

Jan.08,2022

  

for each object in arr, trim is called as the context of call, and the final effect is equivalent to calling the trim method of each object

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c2c7-2c2fc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c2c7-2c2fc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?