From bd3ba6edfe0f0fb907008a90c83846ced21a5c4d Mon Sep 17 00:00:00 2001 From: Arnav Date: Mon, 23 Oct 2017 15:04:58 -0700 Subject: [PATCH] Add symbol as a primitive type - Also add note that symbols cannot by polyfilled and should not be used in environments that don't support them --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 677948fa..282bd173 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Other Style Guides - `boolean` - `null` - `undefined` + - `symbol` ```javascript const foo = 1; @@ -78,6 +79,8 @@ Other Style Guides console.log(foo, bar); // => 1, 9 ``` + - Symbols cannot be faithfully polyfilled, so they should not be used when targeting browsers/environments that don't support them natively. + - [1.2](#types--complex) **Complex**: When you access a complex type you work on a reference to its value.