Web platform features explorer

Array.of()

Widely available since 2019-03-20
Tags: javascript Groups: JavaScript > Collections > Arrays JavaScript > Collections > Typed arrays

The Array.of() and typed array .of() static methods create new arrays from the values of any number of arguments.

Browser support

  • Chrome 45 Released on 2015-09-01
  • Chrome Android 45 Released on 2015-09-01
  • Edge 12 Released on 2015-07-29
  • Firefox 38 Released on 2015-05-12
  • Firefox for Android 38 Released on 2015-05-12
  • Safari 10 Released on 2016-09-20
  • Safari on iOS 10 Released on 2016-09-13