Activity › Forums › Salesforce® Discussions › What is the use of .slice method in Salesforce Lightning Component? Salesforce® Discussions What is the use of .slice method in Salesforce Lightning Component? Posted by Aditya on December 15, 2020 at 7:49 AM What is the use of .slice method in Salesforce Lightning Component? Marziya replied 5 years, 5 months ago 2 Members · 1 Reply 1 Reply Marziya Member December 15, 2020 at 1:16 PM Selects one or more values from a one-dimensional array given a start and, optionally, an end position, and returns a one-dimensional array. An error occurs if the start value is greater than the end value. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me