Created
January 10, 2018 09:32
-
-
Save alexTitakoff/731f12cd307282a91f797f5709f2fd13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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