Skip to content

Filters suggestions #1

@danielfebrero

Description

@danielfebrero
  • truncate: Limits the length of a string to a specified number of characters.
  • stripTags: Removes all HTML tags from a string.
  • stripWhitespace: Removes all whitespace characters from a string.
  • stripPunctuation: Removes all punctuation characters from a string.
  • encodeURI: Encodes a URI string to be used in a URL.
  • decodeURI: Decodes a URI string from a URL.
  • stripNumbers: Removes all numerical characters from a string.
  • wordCount: Counts the number of words in a string.
  • sentenceCount: Counts the number of sentences in a string.
  • pluralize: Adds an "s" to a string to make it plural.
  • singularize: Removes an "s" from a string to make it singular.
  • stripSpaces: Removes all spaces from a string.
  • trim: Removes leading and trailing whitespace from a string.
  • camelCase: Converts a string to camel case.
  • snakeCase: Converts a string to snake case.
  • kebabCase: Converts a string to kebab case.
  • titleCase: Converts a string to title case.
  • reverse: Reverses the order of characters in a string.
  • abbreviate: Shortens a string by removing vowels and repeating letters.
  • mask: Masks a string by replacing characters with asterisks.
  • isEmail: Checks if a string is a valid email address.
  • isURL: Checks if a string is a valid URL.
  • isNumber: Checks if a string is a valid number.
  • isDate: Checks if a string is a valid date.
  • formatPhoneNumber: Formats a string as a phone number.
  • capitalizeWords: Capitalizes the first letter of each word in a string.
  • wrap: Wraps a string in HTML tags.
  • filterByProperty: Filters an array of objects by a specific property.
  • formatDateRange: Formats a date range using the specified format string.
  • toOrdinal: Converts a number to its ordinal form (e.g., 1st, 2nd, 3rd).
  • randomize: Randomizes the order of elements in an array.
  • isBoolean: Checks if a string is a valid boolean value.
  • isHexColor: Checks if a string is a valid hexadecimal color value.
  • reverseWords: Reverses the order of words in a string.
  • maskCreditCard: Masks a string by replacing credit card numbers with asterisks.
  • slice: Returns a slice of an array or string.
  • round: Rounds a number to a specified number of decimal places.
  • filterByValue: Filters an array of objects by a specific value.
  • filterByRange: Filters an array of numbers by a specified range.
  • join: Joins the elements of an array into a string using a specified delimiter.
  • sum: Calculates the sum of an array of numbers.
  • mean: Calculates the mean of an array of numbers.
  • median: Calculates the median of an array of numbers.
  • mode: Calculates the mode of an array of numbers.
  • unique: Returns an array of unique elements from an array.
  • first: Returns the first element of an array.
  • last: Returns the last element of an array.
  • shuffle: Shuffles the elements of an array randomly.
  • factorial: Calculates the factorial of a number.
  • fibonacci: Calculates the nth number in the Fibonacci sequence.
  • isPalindrome: Checks if a string is a palindrome.
  • isPrime: Checks if a number is prime.
  • padStart: Pads a string with a specified character until it reaches a certain length.
  • padEnd: Pads a string with a specified character until it reaches a certain length.
  • flatten: Flattens an array of nested arrays.
  • mapValues: Applies a function to the values of an object and returns a new object.
  • sortBy: Sorts an array by a specified property or function.
  • groupBy: Groups an array of objects by a specified property.
  • zip: Combines two or more arrays into a single array of tuples.
  • transpose: Transposes an array of arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions