Created
September 11, 2016 15:33
-
-
Save andrewstevenson/8d2b65b19d3fdd7680db4b27aad9a43d 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
return pb.mapValues( | |
function(value) | |
for i, element in ipairs(value.elements) do | |
element.children = nil | |
element.id = i | |
element.parent = 0 | |
end | |
return value | |
end | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment