« first day (4883 days earlier)      last day (282 days later) » 

00:35
||choose "top gun 1" or "top gun 2"
top gun 1
posted on February 28, 2024 by Daniel Gagnon

The Dev channel is being updated to 123.0.6312.11 (Platform version: 15786.4.0) for most ChromeOS devices. This build contains a number of bug fixes and security updates. If you find new issues, please let us know one of the following ways File a bugVisit our ChromeOS communitiesGeneral: Chromebook Help CommunityBeta Specific: ChromeOS Beta Help CommunityReport an issue or send feedba

 
10 hours later…
10:19
var input = [{
clientArrngmntId: 12,
level: 1,
hasChild: true,
parentId: 0,
idx: 0,
},
{
clientArrngmntId: 13,
level: 2,
hasChild: true,
parentId: 12,
idx: 2,
},
{
clientArrngmntId: 14,
level: 3,
hasChild: false,
parentId: 13,
idx: 3,
},
{
clientArrngmntId: 15,
level: 2,
hasChild: false,
parentId: 12,
idx: 4,
},
{
clientArrngmntId: 16,
level: 1,
hasChild: false,
parentId: 0,
idx: 5,
}]

var output = [{
clientArrngmntId: 12,
level: 1,
hasChild: true,
parentId: 0,
path:[12],
idx: 0,
},
{
clientArrngmntId: 13,
@KARTHIKEYAN.A Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
how to convert getting error
```const processDataAlt = data => {
const flattenedData = []
const flattenRowRecursive = (row, parentPath) => {
const dataPath = [ ...parentPath, row.clientArrngmntId ]
flattenedData.push({
...row,
dataPath,
})
if (row.hasChild && !flattenedData.includes(row.clientArrngmntId)) {
flattenRowRecursive(row, dataPath)
}
}
data.forEach(row => flattenRowRecursive(row, []))
return flattenedData
}```
@KARTHIKEYAN.A Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
trying this code
!! var a = 4
10:27
@UdaraSandesha Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@KARTHIKEYAN.A Is your data guaranteed to be in sequential order? As in: is a parent always before its children?
There can be an algorithm processing them sequentially or in random order but they'd be different. The sequential one should be easier.
 
4 hours later…
14:44
posted on February 28, 2024 by Ben Mason

Hi everyone! We've just released Chrome Beta 123 (123.0.6312.17) for iOS; it'll become available on App Store in the next few days. You can see a partial list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

 
2 hours later…
16:44
posted on February 28, 2024 by Matt

The Stable channel is being updated to OS version: 15699.72.0 Browser version: 121.0.6167.212 for most ChromeOS devices. If you find new issues, please let us know one of the following ways File a bugVisit our ChromeOS communitiesGeneral: Chromebook Help CommunityBeta Specific: ChromeOS Beta Help CommunityReport an issue or send feedback on ChromeInterested in swit

 
3 hours later…
19:56
posted on February 28, 2024 by Krishna Govind

 Hi, everyone! We've just released Chrome 122 (122.0.6261.90) for Android: it'll become available on Google Play over the next few days. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Android releases contain the same security fixes as the

20:42
@KARTHIKEYAN.A, first bug, in your flattenedRowRecursive function, you have this line
if (row.hasChild && !flattenedData.includes(row.clientArrngmntId)) {
!flattenedData.includes(row.clientArrngmntId) checks that the id is not in the flattenedData, but flattenedData does not contain a list of ids, its a list of rows ( with the additional field )
you'd have to write your own check that any of the rows in flattenedData do not have that clientArrngmtId
flattenedData.filter(row2=>row2.clientArrngmntId===row.clientArrngmntId)
21:31
can someone not post on this chat forum without twenty reputation ???

« first day (4883 days earlier)      last day (282 days later) »