Boolean in ECMAScript 262

Holds true/false values.

Inherits from:

Instance Properties

name type description
prototype Object The prototype for a class. [from Object]
constructor Object A reference to the constructor class for the current object instance. [from Object]

Instance Methods

name returns description
toLocaleString() String For most objects, the same as toString() unless explicitly overridden. [from Object]
valueOf() String Returns the internal this value of the object. [from Object]
hasOwnProperty() Boolean Determines if the object/instance itself has the named property or method. [from Object]
isPrototypeOf() Boolean Determines if the calling object prototype is in the inheritance chain for the supplied argument. [from Object]
propertyIsEnumerable() Boolean Determines if the object/instance itself has a property or method of the supplied name which will appear in a for (prop in obj) enumeration. [from Object]
toString() String Returns a string representation of the object. [from Object]

Properties that are a Boolean

name object description
disabled [html] HTMLSelectElement
multiple [html] HTMLSelectElement
disabled [html] HTMLOptGroupElement
defaultSelected [html] HTMLOptionElement
disabled [html] HTMLOptionElement
selected [html] HTMLOptionElement
defaultChecked [html] HTMLInputElement
checked [html] HTMLInputElement
disabled [html] HTMLInputElement
readOnly [html] HTMLInputElement
disabled [html] HTMLTextAreaElement
readOnly [html] HTMLTextAreaElement
disabled [html] HTMLButtonElement
compact [html] HTMLUListElement
compact [html] HTMLOListElement
compact [html] HTMLDListElement
compact [html] HTMLDirectoryElement
compact [html] HTMLMenuElement
noShade [html] HTMLHRElement
isMap [html] HTMLImageElement
declare [html] HTMLObjectElement
noHref [html] HTMLAreaElement
defer [html] HTMLScriptElement
noWrap [html] HTMLTableCellElement
noResize [html] HTMLFrameElement
ignoreCase RegExp (read only) The case-insensitive flag for the regular expression.
multiline RegExp (read only) The multiline flag for the regular expression.
paused [anark] TimeContext (read only) Is the context paused?
allLocked [pshop] ArtLayer
grouped [pshop] ArtLayer is the layer grouped with the layer below?
isBackgroundLayer [pshop] ArtLayer is the layer a background layer?
pixelsLocked [pshop] ArtLayer
positionLocked [pshop] ArtLayer
transparentPixelsLocked [pshop] ArtLayer
visible [pshop] ArtLayer
alphaChannels [pshop] BMPSaveOptions save alpha channels
flipRowOrder [pshop] BMPSaveOptions
rleCompression [pshop] BMPSaveOptions should RLE compression be used?
visible [pshop] Channel
embedColorProfile [pshop] DCS1_SaveOptions embed color profile in document
halftoneScreen [pshop] DCS1_SaveOptions include halftone screen
interpolation [pshop] DCS1_SaveOptions use image interpolation
transferFunction [pshop] DCS1_SaveOptions include transfer functions in document
vectorData [pshop] DCS1_SaveOptions include vector data
embedColorProfile [pshop] DCS2_SaveOptions embed color profile in document
halftoneScreen [pshop] DCS2_SaveOptions include halftone screen
interpolation [pshop] DCS2_SaveOptions use image interpolation
multiFileDCS [pshop] DCS2_SaveOptions
spotColors [pshop] DCS2_SaveOptions save spot colors
transferFunction [pshop] DCS2_SaveOptions include transfer functions in document
vectorData [pshop] DCS2_SaveOptions include vector data
managed [pshop] Document (read only) is the document a workgroup document?
quickMaskMode [pshop] Document is the document in the quick mask mode?
saved [pshop] Document (read only) has the document been saved since last change?
noBreak [pshop] TextItem
antiAlias [pshop] EPSOpenOptions use antialias?
constrainProportions [pshop] EPSOpenOptions constrain proportions of image
embedColorProfile [pshop] EPSSaveOptions embed color profile in document
halftoneScreen [pshop] EPSSaveOptions include halftone screen
interpolation [pshop] EPSSaveOptions use image interpolation
psColorManagement [pshop] EPSSaveOptions use Postscript color management
transferFunction [pshop] EPSSaveOptions include transfer functions in document
transparentWhites [pshop] EPSSaveOptions only valid when saving BitMap documents
vectorData [pshop] EPSSaveOptions include vector data
interlaced [pshop] GIFSaveOptions should rows be interlaced?
preserveExactColors [pshop] GIFSaveOptions
transparency [pshop] GIFSaveOptions
snapshot [pshop] HistoryState (read only) is the history state a snapshot?
preserveExactColors [pshop] IndexedConversionOptions
transparency [pshop] IndexedConversionOptions
embedColorProfile [pshop] JPEGSaveOptions embed color profile in document
allLocked [pshop] LayerSet
visible [pshop] LayerSet
antiAlias [pshop] PDFOpenOptions use antialias?
constrainProportions [pshop] PDFOpenOptions constrain proportions of image
alphaChannels [pshop] PDFSaveOptions save alpha channels
annotations [pshop] PDFSaveOptions save annotations
downgradeColorProfile [pshop] PDFSaveOptions should the embedded color profile be downgraded to version 2
embedColorProfile [pshop] PDFSaveOptions embed color profile in document
embedFonts [pshop] PDFSaveOptions embed fonts? (only valid if vector data is included)
interpolation [pshop] PDFSaveOptions use image interpolation?
layers [pshop] PDFSaveOptions save layers
spotColors [pshop] PDFSaveOptions save spot colors
transparency [pshop] PDFSaveOptions
useOutlines [pshop] PDFSaveOptions use outlines for text? (only valid if vector data is included)
vectorData [pshop] PDFSaveOptions include vector data
alphaChannels [pshop] PICTFileSaveOptions save alpha channels
embedColorProfile [pshop] PICTFileSaveOptions embed color profile in document
alphaChannels [pshop] PICTResourceSaveOptions save alpha channels
embedColorProfile [pshop] PICTResourceSaveOptions embed color profile in document
interlaced [pshop] PNGSaveOptions should rows be interlaced?
alphaChannels [pshop] PhotoshopSaveOptions save alpha channels
annotations [pshop] PhotoshopSaveOptions save annotations
embedColorProfile [pshop] PhotoshopSaveOptions embed color profile in document
layers [pshop] PhotoshopSaveOptions save layers
spotColors [pshop] PhotoshopSaveOptions save spot colors
alphaChannels [pshop] PixarSaveOptions save alpha channels
askBeforeSavingLayeredTIFF [pshop] Preferences
autoUpdateOpenDocuments [pshop] Preferences
beepWhenDone [pshop] Preferences
colorChannelsInColor [pshop] Preferences
createFirstSnapshot [pshop] Preferences automatically make first snapshot when a new document is created?
dynamicColorSliders [pshop] Preferences
exportClipboard [pshop] Preferences
fullSizePreview [pshop] Preferences
iconPreview [pshop] Preferences
imageCacheForHistograms [pshop] Preferences
keyboardZoomResizesWindows [pshop] Preferences
macOSTumbnail [pshop] Preferences
maximizeCompatibility [pshop] Preferences maximize compatibility for Photoshop (PSD) files
nonLinearHistory [pshop] Preferences allow non-linear history?
pixelDoubling [pshop] Preferences
savePaletteLocations [pshop] Preferences
showAsianTextOptions [pshop] Preferences
showEnglishFontNames [pshop] Preferences
showSliceNumber [pshop] Preferences
showToolTips [pshop] Preferences
smartQuotes [pshop] Preferences
useAdditionalPluginFolder [pshop] Preferences
useDiffusionDither [pshop] Preferences
useLowerCaseExtension [pshop] Preferences should the file extension be lowercase
useShiftKeyForToolSwitch [pshop] Preferences
useVideoAlpha [pshop] Preferences this option requires hardware support
windowsTumbnail [pshop] Preferences
interleaveChannels [pshop] RawFormatOpenOptions are the channels in the image interleaved?
retainHeader [pshop] RawFormatOpenOptions retain header when saving?
alphaChannels [pshop] RawSaveOptions save alpha channels
spotColors [pshop] RawSaveOptions save spot colors
alphaChannels [pshop] SGIRGBSaveOptions save alpha channels
spotColors [pshop] SGIRGBSaveOptions save spot colors
alternateLigatures [pshop] TextItem use alternate ligatures?
autoKerning [pshop] TextItem whether to use a font's built-in kerning information
fauxBold [pshop] TextItem use faux bold?
fauxItalic [pshop] TextItem use faux italic?
hangingPuntuation [pshop] TextItem use Roman Hanging Punctuation?
hyphenateCapitalWords [pshop] TextItem whether to hyphenate capitalized words
hyphenation [pshop] TextItem use hyphenation?
ligatures [pshop] TextItem use ligatures?
oldStyle [pshop] TextItem use old style?
strikeThru [pshop] TextItem
underline [pshop] TextItem
useAutoLeading [pshop] TextItem whether to use a font's built-in leading information
alphaChannels [pshop] TiffSaveOptions save alpha channels
annotations [pshop] TiffSaveOptions save annotations
embedColorProfile [pshop] TiffSaveOptions embed color profile in document
layers [pshop] TiffSaveOptions save layers
saveImagePyramid [pshop] TiffSaveOptions
spotColors [pshop] TiffSaveOptions save spot colors
transparency [pshop] TiffSaveOptions
alias [pshop] File (read only) Is the file a file system alias?
exists [pshop] File (read only) Returns true if the path of this File refers to an existing file on disk.
eof [pshop] File (read only) Is the file pointer at the end of the File?
hidden [pshop] File Is the File invisible?
readonly [pshop] File May the file be altered?
alias [pshop] Folder (read only) Is the Folder a file-system alias?
exists [pshop] Folder (read only) Returns true if the path of this Folder refers to an existing file on disk.
active [anark] Asset Should this asset be drawn?
loopPresentation [anark] Scene Should the presentation loop?
specularEnable [anark] Material Enable specularity?
visible [anark] Image Apply this image to its material?
loop [anark] Video Should the video continuously loop?
buffered [anark] Video (read only) Is the video buffered and ready to play?
loop [anark] Music Should the music continuously loop?
buffered [anark] Music (read only) Is the music buffered and ready to play?
transparentBackground [anark] Layer Should this layer obscure layers behind it?
orthographic [anark] Camera Use orthographic rendering?
fogEnable [anark] Camera Use fog?
loop [anark] Sound Should the sound continuously loop?
lookAtLock [anark] Camera Always look at the same point?
baseVal [svg] SVGAnimatedBoolean
animVal [svg] SVGAnimatedBoolean (read only)
largeArcFlag [svg] SVGPathSegArcAbs
sweepFlag [svg] SVGPathSegArcAbs
useCurrentView [svg] SVGSVGElement
largeArcFlag [svg] SVGPathSegArcRel
sweepFlag [svg] SVGPathSegArcRel
specified [dom] Attr (read only)
bubbles [events] Event (read only)
cancelable [events] Event (read only)
ctrlKey [events] MouseEvent (read only) Was the 'ctrl' key depressed when this event was fired?
shiftKey [events] MouseEvent (read only) Was the 'shift' key depressed when this event was fired?
altKey [events] MouseEvent (read only) Was the 'alt' key depressed when this event was fired?
metaKey [events] MouseEvent (read only) Was the 'shift' key depressed when this event was fired?
disabled [stylesheets] StyleSheet
disabled [html] HTMLLinkElement
disabled [html] HTMLStyleElement
clickable [anark] Node Can this object be clicked on?
global RegExp (read only) The global flag for the regular expression.
mouseEvents [anark] Behavior Does the object to which this behavior is attached respond to mouse events?

Methods that return a Boolean

name of object description
hasFeature() DOMImplementation
isSupported() Node
hasAttribute() Element
hasAttributeNS() Element
hasChildNodes() Node
hasAttributes() Node
hasOwnProperty() Object Determines if the object/instance itself has the named property or method.
isPrototypeOf() Object Determines if the calling object prototype is in the inheritance chain for the supplied argument.
propertyIsEnumerable() Object Determines if the object/instance itself has a property or method of the supplied name which will appear in a for (prop in obj) enumeration.
isFinite() Global Returns false if the supplied number is NaN, Infinity or -Infinity; returns true otherwise.
isNaN() Global Returns true if the supplied number is NaN, false otherwise.
remove() File Delete the file.
remove() Folder Delete the folder.
rename() File Rename the file.
rename() Folder Rename the folder.
execute() File Run or open the file.
seek() File Seek to a location in the file.
write() File Write string data to the file.
writeln() File Write string data to the file.
confirm() Application Display a confirmation dialog.
getBoolean() ActionDescriptor get the value of a key of type boolean
haskey() ActionDescriptor does the descriptor contain the provided key?
isEqual() ActionDescriptor return true if the provided color is visually equal to this color
getBoolean() ActionList get the value of an item of type boolean
create() Folder Create a new folder.
open() File Open the file for read/write operations.
close() File Close the open File.
copy() File Copy the file to the given location.
hasExtension() SVGTests
animationsPaused() SVGSVGElement
checkIntersection() SVGSVGElement Does the element intersect the rect?
checkEnclosure() SVGSVGElement Is the element within a rectangular area?
equals() Color Compare two colors for equivalence.
equals() Vector Compare two vectors for equivalence.
equals() Rotation Compare two rotation vectors for equivalence.
isIdentity() Matrix Is this an identity matrix?
isBuffered() Presentation Is a Music/Video buffered yet?
dispatchEvent() EventTarget Dispatches an event to the invoking object.
test() RegExp Run the regular expression against a string; return true if a match exists, false otherwise.

Arguments that are a Boolean

name in method of object description
largeArcFlag createSVGPathSegArcAbs() [svg] SVGPathElement
sweepFlag createSVGPathSegArcAbs() [svg] SVGPathElement
largeArcFlag createSVGPathSegArcRel() [svg] SVGPathElement
sweepFlag createSVGPathSegArcRel() [svg] SVGPathElement
deep importNode() [dom] Document If true, recursiv
deep cloneNode() [dom] Node If true, recursiv
useCapture addEventListener() [events] EventTarget
useCapture removeEventListener() [events] EventTarget
canBubbleArg initEvent() [events] Event Specifies whether or not the e
cancelableArg initEvent() [events] Event Specifies whether or not the e
canBubbleArg initUIEvent() [events] UIEvent
cancelableArg initUIEvent() [events] UIEvent
canBubbleArg initMouseEvent() [events] MouseEvent
cancelableArg initMouseEvent() [events] MouseEvent
ctrlKeyArg initMouseEvent() [events] MouseEvent
altKeyArg initMouseEvent() [events] MouseEvent
shiftKeyArg initMouseEvent() [events] MouseEvent
metaKeyArg initMouseEvent() [events] MouseEvent
canBubbleArg initMutationEvent() [events] MutationEvent
cancelableArg initMutationEvent() [events] MutationEvent
value putBoolean() [pshop] ActionDescriptor
value putBoolean() [pshop] ActionList
preserveLuminosity adjustColorBalance() [pshop] ArtLayer
monochromatic applyAddNoise() [pshop] ArtLayer
invert applyGlassEffect() [pshop] ArtLayer
merge clear() [pshop] ArtLayer
monochrome mixChannels() [pshop] ArtLayer
blackPointCompensation convertProfile() [pshop] Document
dither convertProfile() [pshop] Document
intoSelection paste() [pshop] Document
blackPointCompensation print() [pshop] Document
asCopy saveAs() [pshop] Document
top trim() [pshop] Document
left trim() [pshop] Document
bottom trim() [pshop] Document
right trim() [pshop] Document
merge copy() [pshop] Selection
preserveTransparency fill() [pshop] Selection
antiAlias ance range() [pshop] Selection
inverting load() [pshop] Selection
antiAlias select() [pshop] Selection
antiAlias similar() [pshop] Selection
preserveTransparency stroke() [pshop] Selection
useBackface intersect() [anark] Model Check for intersection with ba