Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
How to make an analogue of Array.isArray() for Map in JS?

I'm researching prototypes in JS.

  1. Please tell me how to add the Map.isMap(object) function to the Map prototype.

I was able to make object.isMap() by code:

Map.prototype.isMap = function() {
  return this.__proto__.toString().toLowerCase().includes("map");
}
  1. I know editing prototype chain is a bad practice in JS. What is the best way to create such function?
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!