Fabric.js capitalize() Method Last Updated : 18 Jan, 2021 Comments Improve Suggest changes Like Article Like Report The capitalize() method used to capitalize a specified string. Syntax: capitalize(string, firstLetterOnly) Parameters: This method accept two parameters as mentioned above and described below: string: This parameter holds the string that need to capitalize.firstLetterOnly: This parameter is optional and holds a boolean value. If true only the first letter is capitalized and other letters stay untouched, if the false first letter is capitalized and other letters are converted to lowercase. Return Value: This method returns the capitalized version of the string. Example 1: JavaScript <!DOCTYPE html> <html> <head> <!-- Loading the FabricJS library --> <script src= "https://cdnjs.cloudflare.com/ajax/libs/fabric.js/3.6.2/fabric.min.js"> </script> </head> <body> <script type="text/javascript"> console.log(fabric.util.string.capitalize("gFG", true)); </script> </body> </html> Output: GFG Example 2: JavaScript <!DOCTYPE html> <html> <head> <!-- Loading the FabricJS library --> <script src= "https://cdnjs.cloudflare.com/ajax/libs/fabric.js/3.6.2/fabric.min.js"> </script> </head> <body> <script type="text/javascript"> console.log(fabric.util.string.capitalize("gFG", false)); </script> </body> </html> Output: Gfg Comment More infoAdvertise with us Next Article Fabric.js capitalize() Method K Kanchan_Ray Follow Improve Article Tags : JavaScript Web Technologies Fabric.js Similar Reads Fabric.js camelize() Method The camelize() method used to camelize a specified string. Syntax: camelize(string) Parameters: This method accepts a parameter as mentioned above and described below: string: This parameter holds the string to camelize. Return Value: This method returns the camelized version of the string. Example 1 min read Lodash _.capitalize() Method The _.capitalize() method is a part of the Lodash library and is used to format strings. It takes a string as input and returns a new string where the first character is uppercase and all other characters are lowercase. This method is commonly used when formatting user inputs or ensuring consistent 4 min read Fabric.js Circle toString() Method In this article, we are going to see how to get the string representation of an instance of a circle object using toString() Method in the canvas Circle using FabricJS, it used to fill an object. The canvas Circle means the Circle is movable and can be stretched according to requirements. Further, t 2 min read Fabric.js min() Method The min() method is used to find the minimum value from the specified array. Syntax: min( array ) Parameters: This method accepts single parameter as mentioned above and described below: array: This parameter holds the array to iterate over. Return Value: This method returns the minimum value from t 1 min read Fabric.js max() Method The max() method used to find the maximum value from the specified array. Syntax: max( array ) Parameters: This method accepts single parameter as mentioned above and described below: array: This parameter holds the array to iterate over. Return Value: This method returns the maximum value of the ar 1 min read Fabric.js toFixed() Method The toFixed() method in Fabric.js is used to convert the specified fraction number into a rounded fixed number. Syntax: toFixed(number, fractionDigits) Parameters: This method accepts two parameters as mentioned above and described below: number: This parameter holds the fraction number.fractionDigi 1 min read Fabric.js Textbox charSpacing Property In this article, we are going to see how to change the character spacing of a Textbox canvas using FabricJS. The canvas Textbox means Textbox written is movable and can be stretched according to the requirement. Further, the text itself cannot be edited like a textbox. Approach: To make this possibl 2 min read Fabric.js Itext charSpacing Property Fabric.js is a JavaScript library that is used to work with canvas. The canvas Itext is one of the class of fabric.js that is used to create Itext instances. The canvas Itext means the Itext is movable and can be stretched according to requirement.In this article we will be using charSpacing propert 2 min read Lodash _.camelCase() Method Lodash _.camelCase() method is used to convert a string into a camel case string. The string can be space-separated, dash-separated, or can be separated by underscores. Syntax:_.camelCase(string);Parameters:string: This parameter holds the string that needs to be converted into a camel case string.R 1 min read Like