Skip to content

Conversation

@ebina4yaka
Copy link

StyleGuideについて、最新の内容の反映を行いました。

原文: https://basarat.gitbook.io/typescript/styleguide

修正内容

  • "== or ==="のセクションを追加しました。
  • "null vs undefined"のセクションで一部オリジナルと異なる表記があったので修正しました。
    • 原文:

      Use == null / != null (not === / !==) to check for null / undefined on primitives as it works for both null/undefined but not other falsy values (like '', 0, false) e.g.

    • 元の訳文

      プリミティブにnull/undefinedをチェックするには、== undefined/!= undefinedを使います。これはnull/undefinedの両方に働きます。しかし、他のfalsy値には使わないでください(例:'',0,false)。

    • 修正後の訳文

      == null/!= null(===/!==ではない)を使い、プリミティブにnull/undefinedをチェックします。これはnull/undefinedの両方に働きますが、他のfalsy値(例:'',0,falseなど)では機能しません。

  • 目次の"タブ vs "を"タブ vs スペース"に変更しました。
    • 空白だと分かりにくいのと、オリジナルの"Tabs vs. Spaces"の表記に合わせる形にしました。

@yottahmd
Copy link
Collaborator

ありがとうございます!

@yottahmd yottahmd merged commit 7fa2468 into typescript-book-ja:master Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants