Click here to Skip to main content
15,114,784 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB22-Sep-20 3:27
mveW Balboos, GHB22-Sep-20 3:27 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper22-Sep-20 6:47
Membersimpledeveloper22-Sep-20 6:47 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB22-Sep-20 6:53
mveW Balboos, GHB22-Sep-20 6:53 
GeneralPixelated in javascript Pin
Hasan Moussawi8-Sep-20 21:52
MemberHasan Moussawi8-Sep-20 21:52 
QuestionI have HTML and jQuery as below, I want to convert that into EmberJS Pin
simpledeveloper8-Sep-20 10:44
Membersimpledeveloper8-Sep-20 10:44 
SuggestionRe: I have HTML and jQuery as below, I want to convert that into EmberJS Pin
ZurdoDev9-Sep-20 11:36
professionalZurdoDev9-Sep-20 11:36 
GeneralRe: I have HTML and jQuery as below, I want to convert that into EmberJS Pin
simpledeveloper9-Sep-20 12:47
Membersimpledeveloper9-Sep-20 12:47 
QuestionFilter the JSON object Pin
kasimmohamed5-Sep-20 6:11
Memberkasimmohamed5-Sep-20 6:11 
const base = [
      {id: 1,name: 'A1'},     {id: 11,name: 'A11'},
      {id: 12,name: 'A2'},    {id: 111,name: 'A111'},
      {id: 112,name: 'A112'}, {id: 121,name: 'A121'},
      {id: 122,name: 'A122'},
      {id: 2,name: 'A2'},{id: 3,name: 'A3'},{id: 4,name: 'A4'}
];

const tree = [
  {id: 1, parent:0, level: 'L1'}, 
      {id: 11, parent:1, level: 'L2'},
          {id: 111, parent:11, level: 'L3'}, 
          {id: 112, parent:11, level: 'L3'},
      {id: 12, parent:1, level: 'L2'}, 
          {id: 121, parent:12, level: 'L3'},
          {id: 122, parent:12, level: 'L3'},
]

i have two object one is base another one is tree. if i pass the 'id=11' it has to remove the [id:11]'s level 'L2' and its top level 'L1' id from the base object and result the remaining values. the below result am expecting

const result = [
      {id: 111,name: 'A111'},
      {id: 112,name: 'A112'}, {id: 121,name: 'A121'},
      {id: 122,name: 'A122'},
      {id: 2,name: 'A2'},{id: 3,name: 'A3'},{id: 4,name: 'A4'}
];

how to achieve this?


modified 5-Sep-20 13:11pm.

QuestionHow to redirect in IE 11 Pin
huhuhhuhuh2-Sep-20 2:13
Memberhuhuhhuhuh2-Sep-20 2:13 
AnswerRe: How to redirect in IE 11 Pin
Richard Deeming2-Sep-20 3:52
mveRichard Deeming2-Sep-20 3:52 
AnswerRe: How to redirect in IE 11 Pin
huhuhhuhuh3-Sep-20 7:13
Memberhuhuhhuhuh3-Sep-20 7:13 
AnswerRe: How to redirect in IE 11 Pin
huhuhhuhuh4-Sep-20 3:33
Memberhuhuhhuhuh4-Sep-20 3:33 
AnswerRe: How to redirect in IE 11 Pin
Richard Deeming4-Sep-20 4:15
mveRichard Deeming4-Sep-20 4:15 
Questionwindow.open new window not showing up Pin
Member 1492460727-Aug-20 8:21
MemberMember 1492460727-Aug-20 8:21 
AnswerRe: window.open new window not showing up Pin
Richard MacCutchan27-Aug-20 23:35
mveRichard MacCutchan27-Aug-20 23:35 
GeneralRe: window.open new window not showing up Pin
Member 1492460728-Aug-20 7:00
MemberMember 1492460728-Aug-20 7:00 
GeneralRe: window.open new window not showing up Pin
Richard MacCutchan28-Aug-20 7:27
mveRichard MacCutchan28-Aug-20 7:27 
GeneralRe: window.open new window not showing up Pin
Member 1492460728-Aug-20 7:36
MemberMember 1492460728-Aug-20 7:36 
GeneralRe: window.open new window not showing up Pin
Member 1492460728-Aug-20 12:07
MemberMember 1492460728-Aug-20 12:07 
GeneralRe: window.open new window not showing up Pin
Richard Deeming31-Aug-20 23:32
mveRichard Deeming31-Aug-20 23:32 
QuestionTrouble communicating from brackets to chrome console Pin
Member 1492206724-Aug-20 20:00
MemberMember 1492206724-Aug-20 20:00 
AnswerRe: Trouble communicating from brackets to chrome console Pin
F-ES Sitecore25-Aug-20 1:43
mveF-ES Sitecore25-Aug-20 1:43 
GeneralRe: Trouble communicating from brackets to chrome console Pin
Member 1492206725-Aug-20 7:05
MemberMember 1492206725-Aug-20 7:05 
GeneralRe: Trouble communicating from brackets to chrome console Pin
F-ES Sitecore25-Aug-20 8:02
mveF-ES Sitecore25-Aug-20 8:02 
GeneralRe: Trouble communicating from brackets to chrome console Pin
Member 1492206725-Aug-20 10:21
MemberMember 1492206725-Aug-20 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.