# ichigyou (一行 いちぎょう) functions documentation ## Docs - [Claude Code setup](https://kk-83bff226.mintlify.app/ai-tools/claude-code.md): Configure Claude Code for your documentation workflow - [Cursor setup](https://kk-83bff226.mintlify.app/ai-tools/cursor.md): Configure Cursor for your documentation workflow - [Windsurf setup](https://kk-83bff226.mintlify.app/ai-tools/windsurf.md): Configure Windsurf for your documentation workflow - [arrToString](https://kk-83bff226.mintlify.app/array/arrToString.md): Converts an array to a string. - [findIndex](https://kk-83bff226.mintlify.app/array/findIndex.md): Finds the index of a given element in an array. - [first](https://kk-83bff226.mintlify.app/array/first.md): Gets the first element of an array. - [firstNElements](https://kk-83bff226.mintlify.app/array/firstNElements.md): Returns the first 'n' elements of an array. - [hasEvenNumber](https://kk-83bff226.mintlify.app/array/hasEvenNumber.md): Checks if an array contains an even number. - [hasUniqueValues](https://kk-83bff226.mintlify.app/array/hasUniqueValues.md): Checks if an array has unique values. - [intersection](https://kk-83bff226.mintlify.app/array/intersection.md): Returns the intersection of two arrays or null if there is no intersection. - [isSorted](https://kk-83bff226.mintlify.app/array/isSorted.md): Checks if an array is sorted. - [isSubset](https://kk-83bff226.mintlify.app/array/isSubset.md): Checks if the first array is a subset of the second array. - [last](https://kk-83bff226.mintlify.app/array/last.md): Gets the last element of an array. - [lastNElements](https://kk-83bff226.mintlify.app/array/lastNElements.md): Returns the last 'n' elements from the given array. - [minMax](https://kk-83bff226.mintlify.app/array/minMax.md): Finds the minimum and maximum values in an array. - [removeDuplicated](https://kk-83bff226.mintlify.app/array/removeDuplicated.md): Removes duplicates from an array of numbers or strings. - [removeElement](https://kk-83bff226.mintlify.app/array/removeElement.md): Removes a specific element from an array. - [Development](https://kk-83bff226.mintlify.app/development.md): Preview changes locally to update your docs - [Introduction](https://kk-83bff226.mintlify.app/index.md): Welcome to the documentation of ichigyou (一行 いちぎょう) functions - [average](https://kk-83bff226.mintlify.app/number/average.md): Calculates the average of an array of numbers. - [binaryToDecimal](https://kk-83bff226.mintlify.app/number/binaryToDecimal.md): Converts a binary number (as a string or number) to a decimal number. - [decimalToOctal](https://kk-83bff226.mintlify.app/number/decimalToOctal.md): Converts a decimal number to its octal representation. - [degToRad](https://kk-83bff226.mintlify.app/number/degToRad.md): Converts degrees to radians. - [exponential](https://kk-83bff226.mintlify.app/number/exponential.md): Calculates the result of raising a base number to an exponent. - [factorial](https://kk-83bff226.mintlify.app/number/factorial.md): Calculates the factorial of a given number. - [findMax](https://kk-83bff226.mintlify.app/number/findMax.md): Finds the maximum value in an array of numbers. - [mean](https://kk-83bff226.mintlify.app/number/mean.md): Calculates the mean of an array of numbers. - [median](https://kk-83bff226.mintlify.app/number/median.md): Calculates the median of an array of numbers. - [sum](https://kk-83bff226.mintlify.app/number/sum.md): Calculates the sum of an array of numbers. - [hasProperty](https://kk-83bff226.mintlify.app/object/hasProperty.md): Checks if the specified property is an own property of the given object. - [isEmptyObject](https://kk-83bff226.mintlify.app/object/isEmptyObject.md): Checks if a given object is empty. - [sortByProperty](https://kk-83bff226.mintlify.app/object/sortByProperty.md): Sorts an array of objects based on a specified property. - [currentMonth](https://kk-83bff226.mintlify.app/other/currentMonth.md): Gets the current month number. - [getOS](https://kk-83bff226.mintlify.app/other/getOS.md): Gets the operating system. - [moveToTop](https://kk-83bff226.mintlify.app/other/moveToTop.md): Moves to the top of the page. - [Quickstart](https://kk-83bff226.mintlify.app/quickstart.md): Get started with ichigyou - a collection of one-liner functions in TypeScript - [countLetters](https://kk-83bff226.mintlify.app/string/countLetters.md): Counts the occurrences of each letter in a given string. - [countOccurrences](https://kk-83bff226.mintlify.app/string/countOccurrences.md): Counts the occurrences of a target character in a given string. - [countTextRows](https://kk-83bff226.mintlify.app/string/countTextRows.md): This function counts the number of rows in a given text. - [countWords](https://kk-83bff226.mintlify.app/string/countWords.md): Counts the number of words in a string. - [findLongestWord](https://kk-83bff226.mintlify.app/string/findLongestWord.md): Finds the longest word in a given string. - [isAnagram](https://kk-83bff226.mintlify.app/string/isAnagram.md): Checks if two strings are anagrams of each other. - [isEmptyString](https://kk-83bff226.mintlify.app/string/isEmptyString.md): Checks if a string is empty after trimming. - [isNumeric](https://kk-83bff226.mintlify.app/string/isNumeric.md): Checks if a string can be converted to a number. - [isPalindromeCaseSensitive](https://kk-83bff226.mintlify.app/string/isPalindromeCaseSensitive.md): Checks if a given string is a palindrome considering case sensitivity. - [isValidEmail](https://kk-83bff226.mintlify.app/string/isValidEmail.md): Checks if a string is a valid email. - [isValidURL](https://kk-83bff226.mintlify.app/string/isValidURL.md): Checks if a given string is a valid URL. - [removeDuplicatedChars](https://kk-83bff226.mintlify.app/string/removeDuplicatedChars.md): Removes duplicated characters from a string. - [removeVowels](https://kk-83bff226.mintlify.app/string/removeVowels.md): Removes all vowels from a given string. - [removeWhitespace](https://kk-83bff226.mintlify.app/string/removeWhitespace.md): Removes all whitespace characters from a given string. - [reverseString](https://kk-83bff226.mintlify.app/string/reverseString.md): Reverses a string. - [reverseWords](https://kk-83bff226.mintlify.app/string/reverseWords.md): Reverses the order of words in a string. - [shuffleCharacters](https://kk-83bff226.mintlify.app/string/shuffleCharacters.md): Shuffles the characters in a string. - [toTitleCase](https://kk-83bff226.mintlify.app/string/toTitleCase.md): Converts a string to title case. - [truncateString](https://kk-83bff226.mintlify.app/string/truncateString.md): Truncates a string to a specified maximum length and appends '...' if the string was truncated. ## OpenAPI Specs - [openapi](https://kk-83bff226.mintlify.app/api-reference/openapi.json) ## Optional - [GitHub](https://github.com/koji/ichigyou)