Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

js pop object from id

  const popFromData = (memberID: number): void => {
    setData(
      data
        .filter(function(element: DataType) {
          return element.id !== memberID;
    }))
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #pop #object #id
ADD COMMENT
Topic
Name
1+8 =