Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Code refactoring: Used Array.isArray instead of instanceof.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Jul 24, 2017
1 parent 04a726e commit b3e6088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolbar/normalizetoolbarconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @returns {Object} A normalized toolbar config object.
*/
export default function normalizeToolbarConfig( config ) {
if ( config instanceof Array ) {
if ( Array.isArray( config ) ) {
config = {
items: config
};
Expand Down

0 comments on commit b3e6088

Please sign in to comment.