Posts by Aline Vianna • 167 points
11 posts
-
5
votes3
answers2286
viewsQ: How to remove duplicate values from a multidimensional array in javascript?
Good night, I need to remove duplicate results in an array with other nested arrays. I have the following variable: var dados = [ ['maria', 'telefone', '324-5678', true], ['maria', 'telefone',…
javascriptasked Aline Vianna 167 -
2
votes4
answers721
viewsQ: How to replace with ' ' ' character with Regexp?
I need the ' ' (Reverse Solidus) character to be included with the captured group value. Example: In the sentence Assets/pdf/regulation_demais_ddds_ Hi Mod.pdf, I need the stretch /pdf be replaced…
-
1
votes1
answer33
viewsQ: How to look for the same occurrence of a term independent of its position in a string?
I need to create a regular expression that finds the valuesrc=path-da-imagem in any position he is in. Example: With the expression<img\s(src=\S*)\s(.*?)\/> I can find results in: <img…
-
1
votes1
answer296
viewsQ: Calling class method within a prefix returns: Uncaught (in Promise) Typeerror: _this3.updateShelvesState is not a Function
Good Afternoon! I created a method called updateShelvesState which is called before the component is rendered, and onChange of another component called Book. This method takes an array and creates a…
-
1
votes1
answer296
viewsQ: How to access an object nested in another object dynamically?
I have the following JSON { "Id":"ssjsjs", "Name":"STFksks S.A", "Alias":"STF jnsns S.A", "DocumentId":"010101", "Accounts":[ "hahadkjkjteste" ], "CountryCode":"BRA", "Country":"Brasil", "Address":{…
-
0
votes1
answer901
viewsQ: How to change the value of a defaultProps on an React component?
Good afternoon, I have a loading component that uses a default props. class Loading extends Component { render() { const loadingClasses = classNames({ 'loading': this.props.loading, }) return (…
reactasked Aline Vianna 167 -
1
votes1
answer2088
viewsQ: How to create an React component from select that in the bind event "change" picks the right value that was selected?
Good night! I am trying to make a select component that is used more than once within another Parent component. To create the "option" tags, I map inside the array I created as a state of the…
-
0
votes1
answer32
viewsA: How to add multiple Runs in a paragraph with a part of the Bold string in WPF
I got it. Instead of: Bold sting1 = new Bold(new Run(string.Format("{0}:", item.Chave))); Run string2= new Run(string.Format("\t{0}", item.Valor)); p1 = new Paragraph(string1).Inlines.Add(string2);…
-
1
votes1
answer32
viewsQ: How to add multiple Runs in a paragraph with a part of the Bold string in WPF
Good afternoon, I’m completely new to WPF, so forgive me if the question is stupid. I need to format two strings that are contained in the same paragraph, one in bold, and the other in normal text.…
-
1
votes1
answer938
viewsQ: How to update properties in React "setState"
I’m trying to add objects to 2 properties of the Fecthapis component. I make the call to both Api’s, and I get the request with the expected objects. However, when I try to include these objects in…
-
2
votes0
answers54
viewsQ: How to reference Library Knockout.js installed via NPM
I installed the Knockout.js library via NPM, by the following command: npm install --save-dev knockout I noticed that NPM installs the module inside the node_modules/knockout folder, but I believe…