D
D
DrunkMaster2017-07-30 18:52:39
PHP
DrunkMaster, 2017-07-30 18:52:39

How to replace Array.from in JS?

There is a simple code:

var AllEl= document.querySelectorAll('.first.class');
var My = Array.from(AllEl);

The old browser swears at the second line:
Uncaught TypeError: Object function Array() {[native code]} has no method 'from'

Here https://developer.mozilla.org/en/docs/Web/JavaScri... they write that this is from the ECMA6 standard, yes, there is a Polyfill, but I'm wondering how it's better to write in native JS what would be according to the old standard?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
flekst, 2019-03-07
@flekst

I understand that we are talking about the user table, and the columns should be: corporationname, corporationticker, user.corporationid, alliancename, allianceticker, corporation.allianceid, characterid, characterownerhash, user.id
Right? But what is compared with what further, I can’t understand something at all.

Not true. The query is joining three tables.
https://www.w3schools.com/sql/sql_join.asp
You don't understand relational databases. I don’t even know if it’s worth poking into the jungle without understanding the basics.

A
alvvi, 2017-07-30
@DrunkMaster

IE9+
var My = Array.prototype.slice.call(AllEl);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question