# no-uncalled-method πŸ“ Disallow referencing methods without calling them. πŸ’ΌπŸš« This rule is enabled in the βœ… `recommended` [config](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config). This rule is _disabled_ in the β˜‘οΈ `unopinionated` [config](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config). Forgetting to call a method returns the method function instead of the intended value. This is usually a bug in conditions, returns, and assignments. This rule checks known `Array` and `String` methods when the receiver can be identified from syntax, type annotations, parser type information, conventional variable names like `array` and `string`, or `const` aliases of those. Unknown receivers are ignored to avoid false positives. ## Examples ```js // ❌ const sorted = array.sort; ``` ```js // βœ… const sorted = array.sort(); ``` ```js // ❌ function normalize(string) { return string.toLowerCase; } ``` ```js // βœ… function normalize(string) { return string.toLowerCase(); } ``` ```js // βœ… array.sort.call(array); ``` ```js // βœ… typeof string.toLowerCase === 'function'; ```