[phpMyAdmin Git] [phpmyadmin/phpmyadmin] 923e3f: Replace Array constructors with literal notation
Maurício Meneghini Fauth
mauricio at fauth.dev
Sat May 25 02:55:29 CEST 2019
Branch: refs/heads/master
Home: https://github.com/phpmyadmin/phpmyadmin
Commit: 923e3fb050209b6c2846127f6327a6d0b5de1af9
https://github.com/phpmyadmin/phpmyadmin/commit/923e3fb050209b6c2846127f6327a6d0b5de1af9
Author: Maurício Meneghini Fauth <mauricio at fauth.dev>
Date: 2019-05-24 (Fri, 05 May 2019) -03:00
Changed paths:
M .eslintrc.json
M js/doclinks.js
M js/sql.js
Log Message:
-----------
Replace Array constructors with literal notation
Use of the Array constructor to construct a new array
is generally discouraged in favor of array literal
notation because of the single-argument pitfall and
because the Array global may be redefined. The exception
is when the Array constructor is used to intentionally
create sparse arrays of a specified size by giving
the constructor a single numeric argument.
Signed-off-by: Maurício Meneghini Fauth <mauricio at fauth.dev>
More information about the Git
mailing list