From cbd3c6184b479aa2cc3e5044f1dfa52e4f0fc60e Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Wed, 21 Mar 2018 14:46:33 -0700 Subject: [PATCH] docs: Clarify dot vs bracket notation --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d4ee428..c5f3f3c 100644 --- a/README.md +++ b/README.md @@ -235,6 +235,8 @@ feather.icons.x.toString() // '' ``` +> **Note:** `x` in the above example can be replaced with any valid icon name. See the complete list of icon names at [feathericons.com](https://feathericons.com). Icons with multi-word names (e.g. `arrow-right`) **cannot** be accessed using dot notation (e.g. `feather.icons.x`). Instead, use bracket notation (e.g. `feather.icons['arrow-right']`). + [View Source](https://github.com/colebemis/feather/blob/master/src/icons.js) ---