Skip to content

Instantly share code, notes, and snippets.

@alexTitakoff
Created January 10, 2018 09:32
Show Gist options
  • Save alexTitakoff/731f12cd307282a91f797f5709f2fd13 to your computer and use it in GitHub Desktop.
Save alexTitakoff/731f12cd307282a91f797f5709f2fd13 to your computer and use it in GitHub Desktop.
for(let i; i < arr.length; i++){
if (arr[i].p_id != null) {
new_arr.push(arr[i])
}else {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment