l_Objects/Array/values)
    43. _[ ` Array.prototype.with() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/with) _
  6. **Inheritance**
  7. **[ ` Function ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function) **
  8. Constructor 
    1. [ ` Function() constructor ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/Function)
  9. Properties 
    1. [ ` Function.prototype.arguments ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arguments) Non-standard  Deprecated 
    2. [ ` Function.prototype.caller ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller) Non-standard  Deprecated 
    3. [ ` Function: displayName ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName) Non-standard 
    4. [ ` Function: length ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length)
    5. [ ` Function: name ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name)
    6. [ ` Function: prototype ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype)
  10. Methods 
    1. [ ` Function.prototype[@@hasInstance]() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/@@hasInstance)
    2. [ ` Function.prototype.apply() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply)
    3. [ ` Function.prototype.bind() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind)
    4. [ ` Function.prototype.call() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call)
    5. [ ` Function.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString)
  11. **[ ` Object ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) **
  12. Properties 
    1. [ ` Object.prototype.constructor ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor)
    2. [ ` Object.prototype.__proto__ ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto) Deprecated 
  13. Methods 
    1. [ ` Object.prototype.__defineGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) Deprecated 
    2. [ ` Object.prototype.__defineSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__) Deprecated 
    3. [ ` Object.prototype.__lookupGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__) Deprecated 
    4. [ ` Object.prototype.__lookupSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__) Deprecated 
    5. [ ` Object.prototype.hasOwnProperty() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty)
    6. [ ` Object.prototype.isPrototypeOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf)
    7. [ ` Object.prototype.propertyIsEnumerable() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable)
    8. [ ` Object.prototype.toLocaleString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString)
    9. [ ` Object.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString)
    10. [ ` Object.prototype.valueOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf)

##  In this article

  * Syntax 
  * Description 
  * Examples 
  * Specifications 
  * Browser compatibility 
  * See also 

#  Array.prototype.with()

##  Baseline  2023

Newly available

Since  July 2023  , this feature works across the latest devices and browser
versions. This feature might not work in older devices or browsers.

  * [ Learn more ](/en-US/blog/baseline-evolution-on-mdn/)
  * See full compatibility 
  * [ Report feedback ](https://survey.alchemer.com/s3/7634825/MDN-baseline-feedback?page=%2Fen-US%2Fdocs%2FWeb%2FJavaScript%2FReference%2FGlobal_Objects%2FArray%2Fwith&level=low)

The **` with() ` ** method of [ ` Array ` ](/en-
US/docs/Web/JavaScript/Ref