const map = new Map(); map.set("a", 1); map.set("b", 2); map.set("c", 3); console.log(map.get("a")); // Expected output: 1 map.set("a", 97); console.log(map.get("a")); // Expected output: 97 console.log(map.size); // Expected output: 3 map.delete("b"); console.log(map.size); // E…
const module = { x: 42, getX() { return this.x; }, }; const unboundGetX = module.getX; console.log(unboundGetX()); // The function gets invoked at the global scope // Expected output: undefined const boundGetX = unboundGetX.bind(module); console.log(boundGetX()); // Expected outp…
…orizeAction() @@ -109,18 +111,18 @@ public: Q_INVOKABLE static bool authorize ( const QString & action ); /*! * Returns whether the user is permitted to perform a common action. * Returns whether the user is permitted to perform a common \a action. * * The enum values lower cased…
…valid, how they can be combined, and what their combinations mean. The language constructs will be explained using the usual extended BNF, in which { a } means 0 or more a 's, and [ a ] means an optional a . Non-terminals are shown in italics , keywords are shown in bold , and ot…
…onsible for item sorting! bool TreeProxyModel :: filterAcceptsRow int sourceRow const QModelIndex sourceParent const if filterAcceptsRowItself sourceRow sourceParent )) return true // accept if any of the children is accepted on it's own merits return hasAcceptedChildren sourceRo…
…showModal() method and closed using the .close() or .requestClose() methods. js const dialog = document.querySelector("dialog"); const showButton = document.querySelector("dialog + button"); const closeButton = document.querySelector("dialog button"); // "Show the dialog" button …
…SUSPENDING handler (it is ignored for all the others). More... bool IsVetoed () const Returns whether Veto has been called. More... Public Member Functions inherited from wxEvent wxEvent (int id=0, wxEventType eventType= wxEVT_NULL Constructor. More... virtual wxEvent Clone () co…
…geTags { /** * The tagged edit changes the content model of the page. */ public const TAG_CONTENT_MODEL_CHANGE = 'mw-contentmodelchange' ; /** * The tagged edit creates a new redirect (either by creating a new page or turning an * existing page into a redirect). */ public const T…
…rror, so you don't need to have any knowledge of whether CodeMirror is enabled: const $textarea = $ ( '#wpTextbox1' ) const content = $textarea . textSelection ( 'getContents' ); // Append "Foobar" to the content. $textarea . textSelection ( 'setContents' , content + '\nFoobar' )…
…ariables in JavaScript can be defined using either the var , [ 1 ] let [ 2 ] or const [ 3 ] keywords. Variables defined without keywords will be defined at the global scope. // Declares a function-scoped variable named `x`, and implicitly assigns the // special value `undefined` …
…n (without the new operator) and giving it an integer value or string value. js const previouslyMaxSafeInteger = 9007199254740991n; const alsoHuge = BigInt(9007199254740991); // 9007199254740991n const hugeString = BigInt("9007199254740991"); // 9007199254740991n const hugeHex = …
…Params Makes a new connection to the database server. PGconn *PQconnectdbParams(const char * const *keywords, const char * const *values, int expand_dbname); This function opens a new database connection using the parameters taken from two NULL -terminated arrays. The first, keyw…
… trackId if secondPlaylist trackId trackId if m_audioProducers count trackId == const QString audioTrackId QString "%1#%2" ). arg trackId ). arg audioStream ); if m_audioProducers count audioTrackId == std :: shared_ptr Mlt :: Producer finalProducer if m_clipType == ClipType :: T…
…mber Diff line number Diff line @@ -69,6 +69,14 @@ CommentedTime::CommentedTime(const GenTime &time, QString comment, int markerTyp CommentedTime :: CommentedTime const GenTime time QString comment int markerType const GenTime duration m_time time m_comment std :: move comment ))…
…line @@ -351,7 +351,7 @@ void KateDocManager::saveDocumentList(KConfig *config) const QString entryName QStringLiteral "Document %1" ). arg ); KConfigGroup cg config entryName ); doc -> writeSessionConfig cg ); m_docInfos doc ]. sessionConfigId ++ @@ -361,6 +361,11 @@ void KateDo…