I have a function that runs outside of a vue component. I want the data it returns passed to the data in the vue component.
<script>
function example(){
var item = 'item';
};
example();
export default {
data(){
return (this is where I want item represented)
}
}