KKitForma.

Language

EnglishEnglishTürkçeTurkishDeutschGermanTool unavailable · open catalogEspañolSpanishTool unavailable · open catalogFrançaisFrenchTool unavailable · open catalogPortuguêsPortugueseTool unavailable · open catalogItalianoItalianTool unavailable · open catalogNederlandsDutchTool unavailable · open catalogPolskiPolishTool unavailable · open catalogРусскийRussianTool unavailable · open catalogУкраїнськаUkrainianTool unavailable · open catalogSvenskaSwedishTool unavailable · open catalogNorskNorwegianTool unavailable · open catalogDanskDanishTool unavailable · open catalogSuomiFinnishTool unavailable · open catalogČeštinaCzechTool unavailable · open catalogRomânăRomanianTool unavailable · open catalogΕλληνικάGreekTool unavailable · open catalogالعربيةArabicTool unavailable · open catalogעבריתHebrewTool unavailable · open catalogفارسیPersianTool unavailable · open catalogاردوUrduTool unavailable · open catalogहिन्दीHindiTool unavailable · open catalogবাংলাBengaliTool unavailable · open catalogதமிழ்TamilTool unavailable · open catalogతెలుగుTeluguTool unavailable · open catalogमराठीMarathiTool unavailable · open catalogગુજરાતીGujaratiTool unavailable · open catalog简体中文Chinese SimplifiedTool unavailable · open catalog繁體中文Chinese TraditionalTool unavailable · open catalog日本語JapaneseTool unavailable · open catalog한국어KoreanTool unavailable · open catalogTiếng ViệtVietnameseTool unavailable · open catalogไทยThaiTool unavailable · open catalogBahasa IndonesiaIndonesianTool unavailable · open catalogBahasa MelayuMalayTool unavailable · open catalogFilipinoFilipinoTool unavailable · open catalogKiswahiliSwahiliTool unavailable · open catalogAfrikaansAfrikaansTool unavailable · open catalogMagyarHungarianTool unavailable · open catalogБългарскиBulgarianTool unavailable · open catalogHrvatskiCroatianTool unavailable · open catalogSrpskiSerbianTool unavailable · open catalogSlovenčinaSlovakTool unavailable · open catalogSlovenščinaSlovenianTool unavailable · open catalogLietuviųLithuanianTool unavailable · open catalogLatviešuLatvianTool unavailable · open catalogEestiEstonianTool unavailable · open catalogCatalàCatalanTool unavailable · open catalogEuskaraBasqueTool unavailable · open catalog
← All topics and search

JavaScript & TypeScript

Types, asynchronous code, modules and JavaScript runtime edge cases.

100 troubleshooting guides · Page 2 / 5

  1. How do I send a BigInt sequence through JSON without losing digits?

    Define that field as a decimal string in the transport contract and send sequence.toString().

  2. Why does comparing two input values put 9 after 10?

    Input values are strings, and two strings compare lexicographically.

  3. Why does a fallback overwrite a saved zero-percent discount?

    Logical OR replaces every falsy value, including zero.

  4. Why does optional callback invocation throw for JSON configuration?

    config.onSave?.() only skips nullish values; a present string is not callable.

  5. Why does a destructured API limit stay null despite a default?

    Destructuring defaults apply only to undefined.

  6. Why does editing a copied settings draft alter the live nested settings?

    Spread copies one level, leaving nested references shared.

  7. Why does cloning a configuration object unexpectedly call its getters?

    Object.assign and spread read enumerable property values.

  8. Why do numbered object keys reorder imported workflow steps?

    Array-index-like keys have special enumeration ordering.

  9. Why does hasOwnProperty crash on a null-prototype dictionary?

    The dictionary does not inherit Object.prototype methods.

  10. Why does a composite object key miss an existing Map cache entry?

    A newly constructed key object has a different identity.

  11. Why does a service method lose this when registered as an event listener?

    The event system invokes the detached function with its own receiver.

  12. Why does an arrow method ignore call and bind when changing this?

    An arrow captures lexical this when created.

  13. Why does a private-field class method fail when passed to a timer?

    Private fields require the correct class instance as receiver.

  14. Why do delayed callbacks in a var loop all process the final row?

    They share one function-scoped variable.

  15. Why does typeof throw inside a block before a let declaration?

    The lexical binding is in its temporal dead zone until initialized.

  16. Why does reassignment of an imported configuration flag fail?

    ES imports are live, read-only bindings from the importer’s perspective.

  17. Why is the result of dynamic import not callable?

    Dynamic import resolves to a module namespace.

  18. Why does a Base64 query token lose its plus signs?

    Parsing form-style query text treats plus as space.

  19. Why does a date-only API field display yesterday in an American time zone?

    The standard YYYY-MM-DD form parses as UTC; local formatting can move it to the previous calendar day.

  20. Why does adding 24 hours move a local appointment time across daylight saving?

    An elapsed 24 hours and the next local calendar day are different operations.

  21. Why does an invalid API date crash only when serialized?

    An Invalid Date can exist until toISOString throws.

  22. How do I sort Turkish names with dotted and dotless I consistently?

    Use new Intl.Collator("tr", {sensitivity:"base"}).compare for Turkish user-facing sorting.

  23. How do I truncate a notification without breaking joined emoji?

    Segment text with Intl.Segmenter using grapheme granularity and keep complete segments.

  24. Why does a visible ten-character name fail a JavaScript length limit?

    String.length counts UTF-16 code units, not visible characters.

Ask your own question · Sign in to post questions and answers.